diff options
author | Darkvater <darkvater@openttd.org> | 2006-04-22 09:46:31 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-04-22 09:46:31 +0000 |
commit | ed96dcd86896a251e46932873804186aa5db7551 (patch) | |
tree | d17778b0172b265e34c0b0bf267266b0bf46fe32 /network.h | |
parent | 084acbf23cf3512de1e9f22e6118d3668a0c8843 (diff) | |
download | openttd-ed96dcd86896a251e46932873804186aa5db7551.tar.xz |
(svn r4521) - Fix: be consistent about the size of the player-name in MP. This hopefully fixes a crash on lesser OS's (eg Win98). Use ttd_strlcpy() to just copy over strings and properly terminate them because different implementations of snprintf() behave differently. Courtesy of TrueLight
Diffstat (limited to 'network.h')
-rw-r--r-- | network.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -145,7 +145,7 @@ VARDEF NetworkGameInfo _network_game_info; VARDEF NetworkPlayerInfo _network_player_info[MAX_PLAYERS]; VARDEF NetworkClientInfo _network_client_info[MAX_CLIENT_INFO]; -VARDEF char _network_player_name[NETWORK_NAME_LENGTH]; +VARDEF char _network_player_name[NETWORK_CLIENT_NAME_LENGTH]; VARDEF char _network_default_ip[NETWORK_HOSTNAME_LENGTH]; VARDEF uint16 _network_own_client_index; |