Truncate pilot name at null

This commit is contained in:
Kp 2014-12-06 23:13:38 +00:00
parent 73b0a016a8
commit 1b924c5dd3

View file

@ -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;