home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / utils / bug / 2281 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.1 KB  |  47 lines

  1. Newsgroups: gnu.utils.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!chorus.FR!jloup
  3. From: jloup@chorus.FR (Jean-loup Gailly)
  4. Subject: Re: gzip bug - cannot unzip zipped files
  5. Message-ID: <9212291526.AA01068@nocturne.chorus.fr>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. References: <9212282248.AA14694@dannug.dannug.dk>
  9. Distribution: gnu
  10. Date: Tue, 29 Dec 1992 17:26:31 GMT
  11. Approved: bug-gnu-utils@prep.ai.mit.edu
  12. Lines: 33
  13.  
  14. Here is a patch to fix the bug that was reported in gzip 0.5:
  15.  
  16.    read error on bug.z: No such file or directory
  17.  
  18. The bug is only in gunzip. The .z files created by gzip 0.5 are
  19. correct. I will release soon a new version 0.6 fixing this bug and a
  20. few portability problems.
  21.  
  22. Thanks a lot for your help.
  23.  
  24. Jean-loup Gailly
  25. jloup@chorus.fr
  26.  
  27. *** inflate.c~  Tue Dec 29 16:15:12 1992
  28. --- inflate.c   Tue Dec 29 16:15:45 1992
  29. ***************
  30. *** 921,926 ****
  31. --- 921,934 ----
  32.     } while (!e);
  33.  
  34.  
  35. +   /* Undo too much lookahead. The next read will be byte aligned so we
  36. +    * can discard unused bits in the last meaningful byte.
  37. +    */
  38. +   while (bk >= 8) {
  39. +     bk -= 8;
  40. +     inptr--;
  41. +   }
  42. +
  43.     /* flush out slide */
  44.     flush_output(wp);
  45.  
  46.  
  47.