summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2020-11-08 20:48:20 -0800
committerGitHub <noreply@github.com>2020-11-08 20:48:20 -0800
commit9cf3f106a8dea906ff4550f749112e9e89536678 (patch)
treeb1e9d9411f4ca91602eb02c90e7f5c28c3f19b3b
parentba021f3fa284d26196c2848c2c8dfe1ef38d84db (diff)
parent2964b8a6f6d93e86af52f2d23ec18f02421ebd74 (diff)
downloadlz4-9cf3f106a8dea906ff4550f749112e9e89536678.tar.gz
lz4-9cf3f106a8dea906ff4550f749112e9e89536678.tar.bz2
lz4-9cf3f106a8dea906ff4550f749112e9e89536678.zip
Merge pull request #944 from lz4/fix874
fix #874
-rw-r--r--lib/lz4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lz4.c b/lib/lz4.c
index b066c55..71bdce1 100644
--- a/lib/lz4.c
+++ b/lib/lz4.c
@@ -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);