summaryrefslogtreecommitdiff
path: root/network.h
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-04-22 09:46:31 +0000
committerDarkvater <Darkvater@openttd.org>2006-04-22 09:46:31 +0000
commit580f364cc96b426c38f0c1ae48f58f666492d89d (patch)
treed17778b0172b265e34c0b0bf267266b0bf46fe32 /network.h
parent395b44d15c5238b6b931c873ccaf6bfc41419611 (diff)
downloadopenttd-580f364cc96b426c38f0c1ae48f58f666492d89d.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.h2
1 files changed, 1 insertions, 1 deletions
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;