diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-21 05:08:18 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2011-05-21 05:08:18 -0400 |
commit | 69c8eda6bde1ab5feac5423a8534fe304f4d64cf (patch) | |
tree | 2d676032ecc3739b3f306bb0725a8ed5607d6214 | |
parent | Flush. (diff) | |
download | BruteZip-69c8eda6bde1ab5feac5423a8534fe304f4d64cf.tar.xz BruteZip-69c8eda6bde1ab5feac5423a8534fe304f4d64cf.zip |
Don't wrap vars around on big file.
-rw-r--r-- | read.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -33,12 +33,12 @@ int main(int argc, char *argv[]) dd des; uint32_t sig; int first = 1; - unsigned long lastloc; - unsigned long startloc; + unsigned long long lastloc, startloc, i, len; + unsigned long long startloc; char filename[UINT16_MAX]; char buffer[0x10000]; char zbuffer[0x10000]; - int i, len, ret; + int ret; z_stream strm; while (!feof(fh)) { if (!first) { @@ -122,7 +122,6 @@ int main(int argc, char *argv[]) } else fwrite(buffer, 1, len, ofh); } - printf("%d %d\n", ftell(fh), startloc + header.compressedsize); if (header.compression == 8) inflateEnd(&strm); fclose(ofh); |