From 580f364cc96b426c38f0c1ae48f58f666492d89d Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sat, 22 Apr 2006 09:46:31 +0000 Subject: (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 --- network.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'network.h') diff --git a/network.h b/network.h index 867d2bb3f..0165b62c6 100644 --- a/network.h +++ b/network.h @@ -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; -- cgit v1.2.3-54-g00ecf