mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 05:30:48 +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))
|
if ((value < 0) || (value >= numskins))
|
||||||
sprintf(val, "None");
|
sprintf(val, "None");
|
||||||
else
|
else
|
||||||
sprintf(val, "%s", skins[value].name);
|
strncpy(val, skins[value].name, sizeof val);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sprintf(val, "%d", value);
|
sprintf(val, "%d", value);
|
||||||
|
|
Loading…
Reference in a new issue