]> granicus.if.org Git - zziplib/commitdiff
This commit was generated by cvs2svn to compensate for changes in r122,
authorGuido Draheim <guidod@gmx.de>
Fri, 12 Dec 2003 02:54:33 +0000 (02:54 +0000)
committerGuido Draheim <guidod@gmx.de>
Fri, 12 Dec 2003 02:54:33 +0000 (02:54 +0000)
which included commits to RCS files with non-trunk default branches.

zzip/file.c

index 1c0355b5bcf37f1e17c1dc2890e21be2b7b50e46..bbf65929fa70090475cf70219adc951ce5d892a8 100644 (file)
@@ -119,7 +119,7 @@ _dirsep_casecmp (zzip_char_t* s1, zzip_char_t* s2)
        c1 = (int)(unsigned char) *s1;
        c2 = (int)(unsigned char) *s2;
        if ((c1&0xE0) == 0x40) c1 = mapping[c1&0x1f];
-       if ((c1&0xE0) == 0x40) c2 = mapping[c2&0x1f];
+       if ((c2&0xE0) == 0x40) c2 = mapping[c2&0x1f];
        if (c1 != c2)
            return (c1 - c2);
        s1++; s2++;
@@ -835,6 +835,7 @@ zzip_rewind(ZZIP_FILE *fp)
     
     if (fp->method) 
     { /* method == 8, deflate */
+       inflateEnd(&fp->d_stream);
         memset(&fp->d_stream, 0, sizeof fp->d_stream);
         err = inflateInit2(&fp->d_stream, -MAX_WBITS);
         if (err != Z_OK) { goto error; }