Fix strncpy warning with correct bounding value
This commit is contained in:
@@ -506,7 +506,7 @@ res_PutString (const char *key, const char *value)
|
|||||||
desc->fname = newValue;
|
desc->fname = newValue;
|
||||||
HFree (oldValue);
|
HFree (oldValue);
|
||||||
} else {
|
} else {
|
||||||
strncpy (desc->fname, value, srclen + 1);
|
strncpy (desc->fname, value, dstlen + 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user