ZlibPackageDataReader::ReadData(): We were always copying the data from the

start of the chunk, which is wrong for non chunk aligned offsets.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34101 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2009-11-17 21:50:48 +00:00
parent 42d7962dc9
commit 37fca3d23f

View File

@ -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;