From: John L. <jr...@us...> - 2006-08-02 04:13:46
|
Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv1613/wxLua/modules/wxbind/src Modified Files: socket.cpp Log Message: fix wxSocketBase::ReadMsg for reading less than specified number of bytes Index: socket.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/socket.cpp,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** socket.cpp 9 Jun 2006 22:51:33 -0000 1.17 --- socket.cpp 2 Aug 2006 04:13:41 -0000 1.18 *************** *** 450,454 **** self->ReadMsg(buffer, nbytes); // return the number of parameters ! lua_pushlstring(L, (const char *)buffer, nbytes); free(buffer); return 1; --- 450,454 ---- self->ReadMsg(buffer, nbytes); // return the number of parameters ! lua_pushlstring(L, (const char *)buffer, self->LastCount()); // not nbytes since it may return less free(buffer); return 1; |