aboutsummaryrefslogtreecommitdiff
path: root/src/SCompression.cpp
diff options
context:
space:
mode:
authorLadislav Zezula <ladislav.zezula@avast.com>2023-02-06 18:30:15 +0100
committerLadislav Zezula <ladislav.zezula@avast.com>2023-02-06 18:30:15 +0100
commit0d31856af86ac47801ade118ea93092eab62a101 (patch)
treed51fdfad9d4f394d17a4b4df9ca9c0137e11b9c5 /src/SCompression.cpp
parent9beaed54cd6ef17ba3e0209233a29bd74184de6f (diff)
Fixed bug in the LZMA compression
Diffstat (limited to 'src/SCompression.cpp')
-rw-r--r--src/SCompression.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SCompression.cpp b/src/SCompression.cpp
index 54c84b4..659c9a8 100644
--- a/src/SCompression.cpp
+++ b/src/SCompression.cpp
@@ -461,7 +461,7 @@ static void Compress_LZMA(void * pvOutBuffer, int * pcbOutBuffer, void * pvInBuf
*pbOutBuffer++ = 0;
// Copy the encoded properties to the output buffer
- memcpy(pvOutBuffer, encodedProps, encodedPropsSize);
+ memcpy(pbOutBuffer, encodedProps, encodedPropsSize);
pbOutBuffer += encodedPropsSize;
// Copy the size of the data