home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.utils.bug
- Path: sparky!uunet!cis.ohio-state.edu!chorus.FR!jloup
- From: jloup@chorus.FR (Jean-loup Gailly)
- Subject: Re: gzip bug - cannot unzip zipped files
- Message-ID: <9212291526.AA01068@nocturne.chorus.fr>
- Sender: gnulists@ai.mit.edu
- Organization: GNUs Not Usenet
- References: <9212282248.AA14694@dannug.dannug.dk>
- Distribution: gnu
- Date: Tue, 29 Dec 1992 17:26:31 GMT
- Approved: bug-gnu-utils@prep.ai.mit.edu
- Lines: 33
-
- Here is a patch to fix the bug that was reported in gzip 0.5:
-
- read error on bug.z: No such file or directory
-
- The bug is only in gunzip. The .z files created by gzip 0.5 are
- correct. I will release soon a new version 0.6 fixing this bug and a
- few portability problems.
-
- Thanks a lot for your help.
-
- Jean-loup Gailly
- jloup@chorus.fr
-
- *** inflate.c~ Tue Dec 29 16:15:12 1992
- --- inflate.c Tue Dec 29 16:15:45 1992
- ***************
- *** 921,926 ****
- --- 921,934 ----
- } while (!e);
-
-
- + /* Undo too much lookahead. The next read will be byte aligned so we
- + * can discard unused bits in the last meaningful byte.
- + */
- + while (bk >= 8) {
- + bk -= 8;
- + inptr--;
- + }
- +
- /* flush out slide */
- flush_output(wp);
-
-
-