Big endian fix. The bug was introduced because of a typo.

This commit is contained in:
antirez 2012-03-23 12:42:20 +01:00
parent 6f0e77ca19
commit bd376d13f8

View 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);