mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-03 20:26:05 +00:00
NUL terminate profilename
This commit is contained in:
parent
27a97f03d9
commit
c24c0457e3
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ profile_t* PR_MakeProfile(const char *prname, const char *pname, const char *sna
|
|||
new->version = PROFILEVER;
|
||||
|
||||
strcpy(new->profilename, prname);
|
||||
new->profilename[sizeof new->profilename - 1] = '\0';
|
||||
|
||||
strcpy(new->skinname, sname);
|
||||
strcpy(new->playername, pname);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue