Changeset - r2200:e7230ee22524
[Not reviewed]
master
0 1 0
tron - 19 years ago 2005-07-26 18:47:04
tron@openttd.org
(svn r2716) Do not use strncat()
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
network_server.c
Show inline comments
 
@@ -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));
 
		}
 
	}
 
}
0 comments (0 inline, 0 general)