mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Prevent profile player name from writing out of bounds
This commit is contained in:
parent
5801d67706
commit
964d503988
1 changed files with 1 additions and 1 deletions
|
|
@ -3775,7 +3775,7 @@ void M_HandleProfileEdit(void)
|
||||||
strncpy(optionsmenu.profile->profilename, cv_dummyprofilename.string, PROFILENAMELEN);
|
strncpy(optionsmenu.profile->profilename, cv_dummyprofilename.string, PROFILENAMELEN);
|
||||||
|
|
||||||
if (strlen(cv_dummyprofileplayername.string))
|
if (strlen(cv_dummyprofileplayername.string))
|
||||||
strcpy(optionsmenu.profile->playername, cv_dummyprofileplayername.string);
|
strncpy(optionsmenu.profile->playername, cv_dummyprofileplayername.string, MAXPLAYERNAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
// special menuitem key handler for video mode list
|
// special menuitem key handler for video mode list
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue