From 18d00d0f1fade19a681e690807b5b128b167f4b0 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 26 Jul 2005 18:47:04 +0000 Subject: (svn r2716) Do not use strncat() --- network_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'network_server.c') 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)); } } } -- cgit v1.2.3-54-g00ecf