mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-25 04:09:31 +03:00
better use memcpy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user