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:
parent
42d7962dc9
commit
37fca3d23f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user