From: divverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Date: Sat, 19 Feb 2011 16:36:39 +0000 (+0000)
Subject: Fix bad ipv6 support in status 1 and 2 commands:
X-Git-Tag: xonotic-v0.5.0~425^2~51
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=532a2ac05cd6898c916fc317e5f39c6a88259421;p=xonotic%2Fdarkplaces.git

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 <piuntn@gmail.com>

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10850 d7cf8633-e32d-0410-b094-e92efae38249
---

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;