]> git.saurik.com Git - apple/file_cmds.git/blobdiff - compress/zopen.c
file_cmds-272.tar.gz
[apple/file_cmds.git] / compress / zopen.c
index 0191f778fdf8b71bd95ffebd79bbd657f9473f33..589ce525afc676ecb449a953dd449e6df95e1566 100644 (file)
@@ -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;
                }
                /*