Fix strncpy warning with correct bounding value

This commit is contained in:
Michael Martin
2020-06-09 17:18:05 -07:00
parent 002e1994a1
commit bd9b78e601
+1 -1
View File
@@ -506,7 +506,7 @@ res_PutString (const char *key, const char *value)
desc->fname = newValue;
HFree (oldValue);
} else {
strncpy (desc->fname, value, srclen + 1);
strncpy (desc->fname, value, dstlen + 1);
}
}