When creating new player, make sure string is long enough for use with players dir
This commit is contained in:
parent
e6b7867b27
commit
30590cf3b1
|
@ -3,6 +3,7 @@ D1X-Rebirth Changelog
|
|||
20090209
|
||||
--------
|
||||
main/kconfig.c: Removed PH_SCALE on Keyboard readings as caps movement not in sync to FrameTime; Removed scaled Joystick reading as it's not necessary anymore
|
||||
main/gameseq.c: When creating new player, make sure string is long enough for use with players dir
|
||||
|
||||
20090208
|
||||
--------
|
||||
|
|
|
@ -560,12 +560,12 @@ int MakeNewPlayerFile(int allow_abort)
|
|||
int x;
|
||||
char filename[14];
|
||||
newmenu_item m;
|
||||
char text[CALLSIGN_LEN+1]="";
|
||||
char text[CALLSIGN_LEN+9]="";
|
||||
|
||||
strncpy(text, Players[Player_num].callsign,CALLSIGN_LEN);
|
||||
|
||||
try_again:
|
||||
m.type=NM_TYPE_INPUT; m.text_len = 8; m.text = text;
|
||||
m.type=NM_TYPE_INPUT; m.text_len = CALLSIGN_LEN; m.text = text;
|
||||
|
||||
Newmenu_allowed_chars = playername_allowed_chars;
|
||||
x = newmenu_do( NULL, TXT_ENTER_PILOT_NAME, 1, &m, NULL );
|
||||
|
|
Loading…
Reference in a new issue