Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0de50495 authored by Doug Zongker's avatar Doug Zongker
Browse files

fix FILE* version of ZipUtils::inflateToBuffer

This can't have ever worked; a successful fread() was returning 1
instead of getSize.
parent 5de26890
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ bail:
            LOGV("+++ reading %ld bytes (%ld left)\n",
                getSize, compRemaining);

            int cc = fread(readBuf, getSize, 1, fp);
            int cc = fread(readBuf, 1, getSize, fp);
            if (cc != (int) getSize) {
                LOGD("inflate read failed (%d vs %ld)\n",
                    cc, getSize);
@@ -341,4 +341,3 @@ bail:

    return true;
}