From 1d7fd4d72503aa1c8b6473cba0505373c15ac80e Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 9 May 2020 00:16:15 +0200 Subject: [PATCH] Increase response buffer to allow listing more players Signed-off-by: bones_was_here --- netconn.c | 2 +- netconn.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/netconn.c b/netconn.c index cfabd287..56e6e467 100755 --- 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]; diff --git a/netconn.h b/netconn.h index 7341359e..82557bd5 100755 --- 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) -- 2.39.2