X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/b1befe6a8e4fbec81e721d1a5a0871f88411a1c9..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; }