Truncate pilot name at null
This commit is contained in:
parent
73b0a016a8
commit
1b924c5dd3
|
@ -311,7 +311,7 @@ static int player_menu_handler( listbox *lb,const d_event &event, char **list )
|
|||
}
|
||||
else
|
||||
{
|
||||
Players[Player_num].callsign.copy_lower(items[citem], ~0u);
|
||||
Players[Player_num].callsign.copy_lower(items[citem], strlen(items[citem]));
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue