Live Data progress

This commit is contained in:
rusefillc 2022-01-06 13:13:07 -05:00
parent 0d00272ab5
commit a85e365e88
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ void copyRange(uint8_t *destination, FragmentEntry *fragments, size_t dataOffset
while (dataLength > 0) {
int copyNowSize = minI(dataLength, fragments[fragmentIndex].size - dataOffset);
memcpy(destination + destinationIndex, fragments[fragmentIndex + dataOffset].data, copyNowSize);
memcpy(destination + destinationIndex, fragments[fragmentIndex].data + dataOffset, copyNowSize);
destinationIndex += copyNowSize;
dataOffset = 0;
dataLength -= copyNowSize;