]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Fixed bugs
authorBrian Bosak <webadm@elcnet.servehttp.com>
Mon, 2 Sep 2013 22:40:33 +0000 (17:40 -0500)
committerBrian Bosak <webadm@elcnet.servehttp.com>
Mon, 2 Sep 2013 22:40:33 +0000 (17:40 -0500)
lobby_gameroom.c

index c8a457661d2f5a593aee602b4f025326a4f8135c..4f37b435f9b707776eeb7e4bcb60fca7c2dabc22 100644 (file)
@@ -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() {