mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
CV_SetValueMaybeStealth: Correctly null terminate tmpskin for forcecharacter
This commit is contained in:
parent
acc5fc85b9
commit
fde06aace2
1 changed files with 1 additions and 1 deletions
|
|
@ -2051,7 +2051,7 @@ static void CV_SetValueMaybeStealth(consvar_t *var, INT32 value, boolean stealth
|
||||||
tmpskin = "None";
|
tmpskin = "None";
|
||||||
else
|
else
|
||||||
tmpskin = skins[value].name;
|
tmpskin = skins[value].name;
|
||||||
strncpy(val, tmpskin, SKINNAMESIZE);
|
strlcpy(val, tmpskin, SKINNAMESIZE+1);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
sprintf(val, "%d", value);
|
sprintf(val, "%d", value);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue