From 532a2ac05cd6898c916fc317e5f39c6a88259421 Mon Sep 17 00:00:00 2001 From: divverent Date: Sat, 19 Feb 2011 16:36:39 +0000 Subject: [PATCH] Fix bad ipv6 support in status 1 and 2 commands: header not adapted to the new layout and overall ipv6 IPs not fully displayed Signed-off-by: terencehill git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10850 d7cf8633-e32d-0410-b094-e92efae38249 --- host_cmd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/host_cmd.c b/host_cmd.c index 7014c01e..fb79076e 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -114,9 +114,9 @@ void Host_Status_f (void) print ("players: %i active (%i max)\n\n", players, svs.maxclients); if (in == 1) - print ("^2IP %%pl ping time frags no name\n"); + print ("^2IP %%pl ping time frags no name\n"); else if (in == 2) - print ("^5IP no name\n"); + print ("^5IP no name\n"); for (i = 0, k = 0, client = svs.clients;i < svs.maxclients;i++, client++) { @@ -149,9 +149,9 @@ void Host_Status_f (void) } if(sv_status_privacy.integer && cmd_source != src_command) - strlcpy(ip, client->netconnection ? "hidden" : "botclient" , 22); + strlcpy(ip, client->netconnection ? "hidden" : "botclient", 48); else - strlcpy(ip, (client->netconnection && client->netconnection->address) ? client->netconnection->address : "botclient", 22); + strlcpy(ip, (client->netconnection && client->netconnection->address) ? client->netconnection->address : "botclient", 48); frags = client->frags; -- 2.39.2