mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Fixed block read algorithm
This commit is contained in:
parent
731f2d7e6d
commit
b9c1c6c6cf
@ -123,7 +123,7 @@ bool SubFile::read(Handle &handle, quint8 *buff, quint32 size) const
|
||||
if (size < remaining) {
|
||||
memcpy(buff, handle._data.constData() + handle._blockPos, size);
|
||||
handle._blockPos += size;
|
||||
handle._pos++;
|
||||
handle._pos += size;
|
||||
return true;
|
||||
} else {
|
||||
memcpy(buff, handle._data.constData() + handle._blockPos,
|
||||
|
Loading…
Reference in New Issue
Block a user