]> git.saurik.com Git - redis.git/blobdiff - zipmap.c
support for include directive in config parser
[redis.git] / zipmap.c
index 5f024dfa6cb732abf1b25cd3321ffdc148dddc38..f45ef0dd64c7d795638178d732934bb9755b6a36 100644 (file)
--- 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;
 }