]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
Fix bad ipv6 support in status 1 and 2 commands:
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 Feb 2011 16:36:39 +0000 (16:36 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 Feb 2011 16:36:39 +0000 (16:36 +0000)
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

host_cmd.c

index 7014c01eb7d6f98f1296181671c141009ca94996..fb79076e653e592b6945b6f6c8c93447ce7a37cd 100644 (file)
@@ -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;