diff options
| author | 2011-05-21 04:48:44 -0400 | |
|---|---|---|
| committer | 2011-05-21 04:48:44 -0400 | |
| commit | f656dc80dca6f092bc30fe0dc8bf2ebbb98ba0c0 (patch) | |
| tree | 1c0a34d6977029f918f07ce29761058c13b1c27e | |
| parent | Always seek to bottom. (diff) | |
| download | BruteZip-f656dc80dca6f092bc30fe0dc8bf2ebbb98ba0c0.tar.xz BruteZip-f656dc80dca6f092bc30fe0dc8bf2ebbb98ba0c0.zip | |
Revert "Always seek to bottom."
This reverts commit df7b5131423d538f15311159a1f304bf81a18c3e.
| -rw-r--r-- | read.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -113,6 +113,7 @@ int main(int argc, char *argv[]) strm.next_out = zbuffer; if ((ret = inflate(&strm, Z_NO_FLUSH)) != Z_OK && ret != Z_STREAM_END && ret != Z_BUF_ERROR) { printf("Inflation failed, error %i.\n", ret); + fseek(fh, startloc + header.compressedsize, SEEK_SET); break; } len = sizeof(zbuffer) - strm.avail_out; @@ -120,7 +121,6 @@ int main(int argc, char *argv[]) } while (strm.avail_out == 0); } else fwrite(buffer, 1, len, ofh); - fseek(fh, startloc + header.compressedsize, SEEK_SET); } if (header.compression == 8) inflateEnd(&strm); |
