]> git.saurik.com Git - redis.git/commitdiff
Big endian fix. The bug was introduced because of a typo.
authorantirez <antirez@gmail.com>
Fri, 23 Mar 2012 11:42:20 +0000 (12:42 +0100)
committerantirez <antirez@gmail.com>
Fri, 23 Mar 2012 11:42:20 +0000 (12:42 +0100)
src/ziplist.c

index 5962510d51c5eb5b0d7a65f0dad22702ca7521e1..b214b2da6d97927ff707ebeb8424b35e8dd6a72d 100644 (file)
@@ -240,7 +240,7 @@ static void zipPrevEncodeLengthForceLarge(unsigned char *p, unsigned int len) {
     } else if ((prevlensize) == 5) {                                           \
         assert(sizeof((prevlensize)) == 4);                                    \
         memcpy(&(prevlen), ((char*)(ptr)) + 1, 4);                             \
-        memrev32ifbe(&len);                                                    \
+        memrev32ifbe(&prevlen);                                                \
     }                                                                          \
 } while(0);