libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit 4cd47bcc3c1ea57bb37b7dc400d8f9f98d499c2a
parent 8869259c7f19179208af31bf3e182ced81d748e3
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu, 12 Dec 2019 14:29:59 +0100

better use memcpy

Diffstat:
Msrc/microhttpd/digestauth.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c @@ -480,9 +480,9 @@ lookup_sub_value (char *dest, if (size > len) size = len; size--; - strncpy (dest, - q1, - size); + memcpy (dest, + q1, + size); dest[size] = '\0'; return size; }