Fix strncpy warning by making it more obviously dangerous

The function as a whole is boundschecked after the fact, but as its
comments state, this function really needs its API changed to carry
buffer lengths in from the outside.
This commit is contained in:
Michael Martin
2020-06-09 17:18:36 -07:00
parent bd9b78e601
commit ca9174d317
+1 -1
View File
@@ -284,7 +284,7 @@ construct_response (UNICODE *buf, int R /* promoted from RESPONSE_REF */, ...)
if (name) if (name)
{ {
len = strlen (name); len = strlen (name);
strncpy (buf, name, len); strcpy (buf, name);
buf += len; buf += len;
/* /*