diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-12-12 14:29:59 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-12-12 14:29:59 +0100 |
commit | 4cd47bcc3c1ea57bb37b7dc400d8f9f98d499c2a (patch) | |
tree | cd013b35e098c9051367a38b5030129dabff4e71 /src/microhttpd | |
parent | 8869259c7f19179208af31bf3e182ced81d748e3 (diff) | |
download | libmicrohttpd-4cd47bcc3c1ea57bb37b7dc400d8f9f98d499c2a.tar.gz libmicrohttpd-4cd47bcc3c1ea57bb37b7dc400d8f9f98d499c2a.zip |
better use memcpy
Diffstat (limited to 'src/microhttpd')
-rw-r--r-- | src/microhttpd/digestauth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c index fe078009..98ce433a 100644 --- a/src/microhttpd/digestauth.c +++ b/src/microhttpd/digestauth.c | |||
@@ -480,9 +480,9 @@ lookup_sub_value (char *dest, | |||
480 | if (size > len) | 480 | if (size > len) |
481 | size = len; | 481 | size = len; |
482 | size--; | 482 | size--; |
483 | strncpy (dest, | 483 | memcpy (dest, |
484 | q1, | 484 | q1, |
485 | size); | 485 | size); |
486 | dest[size] = '\0'; | 486 | dest[size] = '\0'; |
487 | return size; | 487 | return size; |
488 | } | 488 | } |