]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
changed extResponse handler to quote the address string when passing it to the menu qc
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 14 Jan 2007 11:18:17 +0000 (11:18 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 14 Jan 2007 11:18:17 +0000 (11:18 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6695 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c

index ba857902e35540817b143ccdcb4dce52c3bd4483..1ade12c331a31c390ae00667a88d7bbada744888 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -1353,7 +1353,7 @@ static int NetConn_ClientParsePacket(lhnetsocket_t *mysocket, unsigned char *dat
                        if(net_extresponse_count > NET_EXTRESPONSE_MAX)
                                net_extresponse_count = NET_EXTRESPONSE_MAX;
                        net_extresponse_last = (net_extresponse_last + 1) % NET_EXTRESPONSE_MAX;
-                       dpsnprintf(net_extresponse[net_extresponse_last], sizeof(net_extresponse[net_extresponse_last]), "%s %s", addressstring2, string + 12);
+                       dpsnprintf(net_extresponse[net_extresponse_last], sizeof(net_extresponse[net_extresponse_last]), "'%s' %s", addressstring2, string + 12);
                        return true;
                }
                if (!strncmp(string, "ping", 4))