aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2011-05-21 05:08:18 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2011-05-21 05:08:18 -0400
commit69c8eda6bde1ab5feac5423a8534fe304f4d64cf (patch)
tree2d676032ecc3739b3f306bb0725a8ed5607d6214
parentFlush. (diff)
downloadBruteZip-69c8eda6bde1ab5feac5423a8534fe304f4d64cf.tar.xz
BruteZip-69c8eda6bde1ab5feac5423a8534fe304f4d64cf.zip
Don't wrap vars around on big file.
-rw-r--r--read.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/read.c b/read.c
index 58adfc5..ac6a7e3 100644
--- a/read.c
+++ b/read.c
@@ -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);