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_server.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_server.h')
-rw-r--r-- | network_server.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network_server.h b/network_server.h index 8d09c4c36..89b05aff4 100644 --- a/network_server.h +++ b/network_server.h @@ -12,7 +12,7 @@ DEF_SERVER_SEND_COMMAND(PACKET_SERVER_SHUTDOWN); DEF_SERVER_SEND_COMMAND(PACKET_SERVER_NEWGAME); DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_RCON)(NetworkClientState *cs, uint16 color, const char *command); -bool NetworkFindName(char new_name[NETWORK_NAME_LENGTH]); +bool NetworkFindName(char new_name[NETWORK_CLIENT_NAME_LENGTH]); void NetworkServer_HandleChat(NetworkAction action, DestType desttype, int dest, const char *msg, uint16 from_index); bool NetworkServer_ReadPackets(NetworkClientState *cs); |