From: Brian Bosak Date: Mon, 2 Sep 2013 22:40:33 +0000 (-0500) Subject: Fixed bugs X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=f194e4aee087e1a2e986483ee48998cc20c04430;p=xonotic%2Fdarkplaces.git Fixed bugs --- 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() {