]> git.mxchange.org Git - simgear.git/blobdiff - simgear/io/sg_netChat.cxx
Unit test for SGBinObj, and fix a bug in large-indice handling the test revealed.
[simgear.git] / simgear / io / sg_netChat.cxx
index ee3c992a16f81dc37e3af3252b3b24f4b8f4756b..7206401389c40cdacd48c740b04b8bc089e5918a 100644 (file)
@@ -26,7 +26,7 @@
 #include <simgear/io/sg_netChat.hxx>
 
 #include <cstring> // for strdup
-#include <malloc.h>
+#include <cstdlib>
 
 namespace  simgear {
 
@@ -115,8 +115,8 @@ NetChat::handleBufferRead (NetBuffer& in_buffer)
             collectIncomingData (in_buffer.getData(),in_buffer.getLength());
             in_buffer.remove ();
         }
-      
-      return;
+        
+        continue;
     }
     
     int terminator_len = strlen(terminator);