]> wimlib.net Git - wimlib/commitdiff
LZX LRU queue array_to_le32() fix
authorEric Biggers <ebiggers3@gmail.com>
Mon, 10 Sep 2012 01:43:28 +0000 (20:43 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Mon, 10 Sep 2012 01:43:28 +0000 (20:43 -0500)
src/lzx-decomp.c

index 2996afa2b77fed83300f5afffa7c69d413199c60..8aa0b755cb2083fc8d97311733e3c60848cb8428 100644 (file)
@@ -450,7 +450,7 @@ static int lzx_read_block_header(struct input_bitstream *istream,
                ret = bitstream_read_bytes(istream, sizeof(R), R);
                if (ret != 0)
                        return ret;
-               array_to_le32(R, ARRAY_LEN(3));
+               array_to_le32(R, ARRAY_LEN(R));
                queue->R0 = R[0];
                queue->R1 = R[1];
                queue->R2 = R[2];