[Neo-report] r1957 gregory - /trunk/neo/protocol.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu Mar 25 09:49:45 CET 2010
Author: gregory
Date: Thu Mar 25 09:49:44 2010
New Revision: 1957
Log:
Fix _encodeString() helper.
Modified:
trunk/neo/protocol.py
Modified: trunk/neo/protocol.py
==============================================================================
--- trunk/neo/protocol.py [iso-8859-1] (original)
+++ trunk/neo/protocol.py [iso-8859-1] Thu Mar 25 09:49:44 2010
@@ -205,7 +205,7 @@
string = buf[4:4+size]
if len(string) != size:
raise PacketMalformedError("can't read string <%s>" % name)
- return (string, buf[offset+size:])
+ return (string, buf[offset+4+size:])
def _encodeString(buf):
return pack('!L', len(buf)) + buf
More information about the Neo-report
mailing list