mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-18 15:32:33 +00:00
Use strncpy
This commit is contained in:
parent
c33d163c00
commit
53cfba1f42
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue