diff --git a/src/bin/package/PackageDataReader.cpp b/src/bin/package/PackageDataReader.cpp index 29303db668..06b3407b37 100644 --- a/src/bin/package/PackageDataReader.cpp +++ b/src/bin/package/PackageDataReader.cpp @@ -193,7 +193,7 @@ public: // copy data to buffer size_t toCopy = std::min(size, (size_t)fChunkSize - inChunkOffset); - memcpy(buffer, fUncompressBuffer, toCopy); + memcpy(buffer, fUncompressBuffer + inChunkOffset, toCopy); buffer += toCopy; size -= toCopy;