diff --git a/src/util/updatableappimage.cpp b/src/util/updatableappimage.cpp index 5efc920..fb14014 100644 --- a/src/util/updatableappimage.cpp +++ b/src/util/updatableappimage.cpp @@ -233,7 +233,7 @@ namespace appimage::update { assertIfstreamGood(ifs); totalBytesRead += count; - bytesLeftInChunk -= bytesRead; + bytesLeftInChunk -= count; }; auto checkSkipSection = [&](const std::streamsize sectionOffset, const std::streamsize sectionLength) {