diff options
author | Yann Collet <yann.collet.73@gmail.com> | 2014-06-22 10:25:04 (GMT) |
---|---|---|
committer | Yann Collet <yann.collet.73@gmail.com> | 2014-06-22 10:25:04 (GMT) |
commit | da5373197e84ee49d75b8334d4510689731d6e90 (patch) | |
tree | 991ff0ab40b967176ba425db19619d00a70a85d7 /programs/lz4io.c | |
parent | 8d66dd7cd52c69d4542eb910bd8743ef95fa9d8c (diff) | |
download | lz4-da5373197e84ee49d75b8334d4510689731d6e90.zip lz4-da5373197e84ee49d75b8334d4510689731d6e90.tar.gz lz4-da5373197e84ee49d75b8334d4510689731d6e90.tar.bz2 |
Fixed : issue 52 (reported by Ludwig Strigeus)
Diffstat (limited to 'programs/lz4io.c')
-rw-r--r--[-rwxr-xr-x] | programs/lz4io.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/programs/lz4io.c b/programs/lz4io.c index b581c41..49caed3 100755..100644 --- a/programs/lz4io.c +++ b/programs/lz4io.c @@ -754,7 +754,6 @@ static unsigned long long decodeLZ4S(FILE* finput, FILE* foutput) // init memset(&ctx, 0, sizeof(ctx)); - (void)blockIndependenceFlag; // Decode stream descriptor nbReadBytes = fread(descriptor, 1, 3, finput); @@ -838,7 +837,7 @@ static unsigned long long decodeLZ4S(FILE* finput, FILE* foutput) if (sizeCheck != (size_t)blockSize) EXM_THROW(76, "Write error : cannot write data block"); filesize += blockSize; if (streamChecksumFlag) XXH32_update(streamChecksumState, in_buff, blockSize); - if (!independentBlocks) + if (!blockIndependenceFlag) { // handle dictionary for streaming memcpy(in_buff + blockSize - 64 KB, out_buff, 64 KB); |