diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2020-11-09 04:48:20 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-09 04:48:20 (GMT) |
commit | 9cf3f106a8dea906ff4550f749112e9e89536678 (patch) | |
tree | b1e9d9411f4ca91602eb02c90e7f5c28c3f19b3b | |
parent | ba021f3fa284d26196c2848c2c8dfe1ef38d84db (diff) | |
parent | 2964b8a6f6d93e86af52f2d23ec18f02421ebd74 (diff) | |
download | lz4-9cf3f106a8dea906ff4550f749112e9e89536678.zip lz4-9cf3f106a8dea906ff4550f749112e9e89536678.tar.gz lz4-9cf3f106a8dea906ff4550f749112e9e89536678.tar.bz2 |
Merge pull request #944 from lz4/fix874
fix #874
-rw-r--r-- | lib/lz4.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1606,7 +1606,7 @@ int LZ4_compress_fast_continue (LZ4_stream_t* LZ4_stream, * cost to copy the dictionary's tables into the active context, * so that the compression loop is only looking into one table. */ - LZ4_memcpy(streamPtr, streamPtr->dictCtx, sizeof(LZ4_stream_t)); + LZ4_memcpy(streamPtr, streamPtr->dictCtx, sizeof(*streamPtr)); result = LZ4_compress_generic(streamPtr, source, dest, inputSize, NULL, maxOutputSize, limitedOutput, tableType, usingExtDict, noDictIssue, acceleration); } else { result = LZ4_compress_generic(streamPtr, source, dest, inputSize, NULL, maxOutputSize, limitedOutput, tableType, usingDictCtx, noDictIssue, acceleration); |