fix FILE* version of ZipUtils::inflateToBuffer

This can't have ever worked; a successful fread() was returning 1
instead of getSize.
This commit is contained in:
Doug Zongker 2009-07-16 11:27:13 -07:00 committed by Alex Ray
parent c18deadb84
commit 2d8baa06b5
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}