diff options
author | tron <tron@openttd.org> | 2005-07-26 18:47:04 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-07-26 18:47:04 +0000 |
commit | 7e65f441689917d9d476bc458dec303a0d4e4b7c (patch) | |
tree | f13dfd945d0095bc445781074d7385bcc4bfe7d2 | |
parent | 7f1877a617d8e8d6c631ab40273d0b25fbdc338b (diff) | |
download | openttd-7e65f441689917d9d476bc458dec303a0d4e4b7c.tar.xz |
(svn r2716) Do not use strncat()
-rw-r--r-- | network_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/network_server.c b/network_server.c index ddab2de1e..86743e758 100644 --- a/network_server.c +++ b/network_server.c @@ -1326,9 +1326,9 @@ void NetworkPopulateCompanyInfo(void) ci = DEREF_CLIENT_INFO(cs); if (ci != NULL && ci->client_playas > 0 && ci->client_playas <= MAX_PLAYERS) { if (strlen(_network_player_info[ci->client_playas-1].players) != 0) - strncat(_network_player_info[ci->client_playas-1].players, ", ", sizeof(_network_player_info[ci->client_playas-1].players)); + ttd_strlcat(_network_player_info[ci->client_playas - 1].players, ", ", lengthof(_network_player_info[ci->client_playas - 1].players)); - strncat(_network_player_info[ci->client_playas-1].players, client_name, sizeof(_network_player_info[ci->client_playas-1].players)); + ttd_strlcat(_network_player_info[ci->client_playas - 1].players, client_name, lengthof(_network_player_info[ci->client_playas - 1].players)); } } } |