]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Increase response buffer to allow listing more players
authorterencehill <piuntn@gmail.com>
Fri, 8 May 2020 22:16:15 +0000 (00:16 +0200)
committerbones_was_here <bones_was_here@xa.org.au>
Sat, 9 Jul 2022 22:13:05 +0000 (08:13 +1000)
Signed-off-by: bones_was_here <bones_was_here@xa.org.au>
netconn.c
netconn.h

index cfabd287ecbbd58aab507718b0be166a82fe140d..56e6e467d40121e869ab0713cab501393e8b2304 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -2940,7 +2940,7 @@ static int NetConn_ServerParsePacket(lhnetsocket_t *mysocket, unsigned char *dat
 {
        int i, ret, clientnum, best;
        double besttime;
-       char *string, response[1400], addressstring2[128];
+       char *string, response[2800], addressstring2[128];
        static char stringbuf[16384]; // server only
        qboolean islocal = (LHNETADDRESS_GetAddressType(peeraddress) == LHNETADDRESSTYPE_LOOP);
        char senddata[NET_HEADERSIZE+NET_MAXMESSAGE+CRYPTO_HEADERSIZE];
index 7341359ed0127134e8d3fd700a74991719c9ad3b..82557bd5e98c59759aea15b5c24fc42612de5575 100755 (executable)
--- a/netconn.h
+++ b/netconn.h
@@ -282,7 +282,7 @@ typedef struct serverlist_info_s
        /// qc-defined short status string
        char qcstatus[128];
        /// frags/ping/name list (if they fit in the packet)
-       char players[1400];
+       char players[2800];
        /// max client number
        int maxplayers;
        /// number of currently connected players (including bots)