X-Git-Url: https://git.saurik.com/apple/file_cmds.git/blobdiff_plain/e19e38b253de139e081f5d462bc053e7b809ea38..aad783a64f985f1e27c7ffc6e2d3f671323716a9:/compress/zopen.c diff --git a/compress/zopen.c b/compress/zopen.c index 0191f77..589ce52 100644 --- a/compress/zopen.c +++ b/compress/zopen.c @@ -280,7 +280,7 @@ zwrite(void *cookie, const char *wbp, int num) hsize_reg = hsize; cl_hash(zs, (count_int)hsize_reg); /* Clear hash table. */ -middle: for (i = 0; count--;) { +middle: for (; count--;) { c = *bp++; in_count++; fcode = (long)(((long)c << maxbits) + ent); @@ -402,8 +402,8 @@ output(struct s_zstate *zs, code_int ocode) bytes_out += bits; if (fwrite(bp, sizeof(char), bits, fp) != bits) return (-1); - bp += bits; - bits = 0; +// bp += bits; +// bits = 0; offset = 0; } /*