X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/e3f46030fcfd0ffd916d473b16d0ed07e138fefb..b3f83f127273da21506f697e256ae010587b10f1:/zipmap.c diff --git a/zipmap.c b/zipmap.c index 5f024dfa..f45ef0dd 100644 --- a/zipmap.c +++ b/zipmap.c @@ -116,7 +116,7 @@ static unsigned int zipmapDecodeLength(unsigned char *p) { unsigned int len = *p; if (len < ZIPMAP_BIGLEN) return len; - memcpy(&len,p,sizeof(unsigned int)); + memcpy(&len,p+1,sizeof(unsigned int)); return len; }