Commit bd376d13 authored by antirez's avatar antirez
Browse files

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

parent 6f0e77ca
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment