Commit 6fdf3270 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix _encodeString() helper.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1957 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent 81d1847c
......@@ -205,7 +205,7 @@ def _decodeString(buf, name, offset=0):
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment