Use strncpy

This commit is contained in:
James R 2019-12-06 15:09:07 -08:00
parent c33d163c00
commit 53cfba1f42
1 changed files with 1 additions and 1 deletions

View File

@ -1593,7 +1593,7 @@ static void CV_SetValueMaybeStealth(consvar_t *var, INT32 value, boolean stealth
if ((value < 0) || (value >= numskins))
sprintf(val, "None");
else
sprintf(val, "%s", skins[value].name);
strncpy(val, skins[value].name, sizeof val);
}
else
sprintf(val, "%d", value);