[Reconnoiter-devel] [reconnoiter commit] r418 - trunk/src/modules

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Sun Sep 7 00:57:52 EDT 2008


Author: jesus
Date: 2008-09-07 00:57:52 -0400 (Sun, 07 Sep 2008)
New Revision: 418

Modified:
   trunk/src/modules/lua_noit.c
Log:
It just shouldn't be this hard to write this correctly, refs #57

Modified: trunk/src/modules/lua_noit.c
===================================================================
--- trunk/src/modules/lua_noit.c	2008-09-07 01:28:20 UTC (rev 417)
+++ trunk/src/modules/lua_noit.c	2008-09-07 04:57:52 UTC (rev 418)
@@ -183,11 +183,12 @@
       if(cp) {
         lua_pushlstring(cl->L, cl->inbuff, cl->inbuff_len);
         args = 1;
+        
         cl->read_sofar = len - remaining;
+        cl->inbuff_len = 0;
         if(cl->read_sofar > 0) { /* We have to buffer this for next read */
           inbuff_addlstring(cl, buff + remaining, cl->read_sofar);
         }
-        cl->read_sofar = cl->inbuff_len = 0;
         break;
       }
     }



More information about the Reconnoiter-devel mailing list