From f194e4aee087e1a2e986483ee48998cc20c04430 Mon Sep 17 00:00:00 2001 From: Brian Bosak Date: Mon, 2 Sep 2013 17:40:33 -0500 Subject: [PATCH] Fixed bugs --- lobby_gameroom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lobby_gameroom.c b/lobby_gameroom.c index c8a45766..4f37b435 100644 --- a/lobby_gameroom.c +++ b/lobby_gameroom.c @@ -185,6 +185,7 @@ static void msgloop(int sock) { } room.name = Mem_Alloc(idwpool,strlen(ptr)+1); memcpy(room.name,ptr,strlen(ptr)+1); + ptr+=strlen(ptr)+1; room.playercount = *getInt(&ptr); room.playermax = *getInt(&ptr); room.index = *getInt(&ptr); @@ -205,7 +206,7 @@ static void msgloop(int sock) { static int _sock; static void xmit(unsigned char** stream) { size_t sz = (*stream-xmitpacket); - send(_sock,xmitpacket,sz,0); + send(_sock,xmitpacket,sz+1,0); } static void dosay() { -- 2.39.2