From eec3bc595bcfc74da6e92190573eb1c7e972c44b Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 9 Nov 2020 10:48:37 +0100 Subject: [PATCH] coverity warning --- common/lz4/lz4.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/lz4/lz4.c b/common/lz4/lz4.c index da5bbf1e2..0b7df1fb0 100644 --- a/common/lz4/lz4.c +++ b/common/lz4/lz4.c @@ -1586,7 +1586,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);