From 7e65f441689917d9d476bc458dec303a0d4e4b7c Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 26 Jul 2005 18:47:04 +0000 Subject: [PATCH] (svn r2716) Do not use strncat() --- network_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/network_server.c b/network_server.c index ddab2de1e5..86743e758d 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)); } } }