diff options
-rw-r--r-- | msgpack/_unpacker.pyx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/msgpack/_unpacker.pyx b/msgpack/_unpacker.pyx index 46be7e0..06806bd 100644 --- a/msgpack/_unpacker.pyx +++ b/msgpack/_unpacker.pyx @@ -108,7 +108,7 @@ def unpackb(object packed, object object_hook=None, object list_hook=None, if ret == 1: obj = unpack_data(&ctx) if off < buff.len: - raise ExtraData(obj, PyBytes_FromStringAndSize(<char*>(buff)+off, buff.len-off)) + raise ExtraData(obj, PyBytes_FromStringAndSize(<char*>buff.buf+off, buff.len-off)) return obj else: raise UnpackValueError("Unpack failed: error = %d" % (ret,)) |