home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d0xx / d050 / unixarc.lha / UnixArc / bugs / unixarc.57 < prev   
Encoding:
Text File  |  1987-01-17  |  1.9 KB  |  62 lines

  1. Article 57 of net.sources.bugs:
  2. Path: mcdsun!noao!hao!nbires!seismo!rutgers!clyde!cbatt!ihnp4!houxm!hjuxa!catnip!ben
  3. From: ben@catnip.UUCP (Bennett Broder)
  4. Newsgroups: net.sources.bugs
  5. Subject: ARC squeeze fix
  6. Message-ID: <441@catnip.UUCP>
  7. Date: 26 Dec 86 19:32:25 GMT
  8. References: <390@monuxa.UUCP>
  9. Reply-To: ben@catnip.UUCP (Bennett Broder)
  10. Organization: The Broder Residence, Holmdel, NJ  07733
  11. Lines: 48
  12.  
  13. In article <390@monuxa.UUCP> john@monuxa.UUCP (John Ruschmeyer) writes:
  14. >When the UNIX  version of ARC was posted a while ago, I brought it up on
  15. >our systems here. Unlike a recent poster to this newsgroup, I had no
  16. >problem with the Lempel-Ziv (crunch) code, but never could get it to
  17. >correctly squeeze or unsqueeze a file in an archive.
  18. >
  19. >   ...    Using code from that program I was able to fix the problem with
  20. >ARC not correctly unsqueezing a file in the archive (creating either a
  21. >zero-length file or giving the 'invalid decode tree' message).
  22. >
  23. >NOTE: I am still having problems with the squeeze code on our system. For
  24. >some reason, trying to archive a file which would normally be squeezed on
  25. >the MS-DOS version of ARC results in it being compressed with some
  26. >less-efficient method. I think this is a bug, but it appears to be a
  27. >harmless one.
  28.  
  29. In order to decide which compression routine to use, ARC estimates the
  30. size of the resulting file.  The squeezing routine was handicapped
  31. considerably, since the routine calculating the squeezed file size was
  32. figuring on using 16 bytes to store each integer.
  33.  
  34. Here are the diffs to remedy this problem.
  35.  
  36. *** arcsq.c    Fri Dec 26 14:00:28 1986
  37. --- arcsq.c.old    Fri Dec 26 13:59:48 1986
  38. ***************
  39. *** 18,24
  40.   */
  41.   #include <stdio.h>
  42.   
  43. ! #define int16size 2            /* 2 bytes */
  44.   
  45.   /* stuff for Huffman squeezing */
  46.   
  47.  
  48. --- 18,24 -----
  49.   */
  50.   #include <stdio.h>
  51.   
  52. ! #define int16size 16            /* 16 bits */
  53.   
  54.   /* stuff for Huffman squeezing */
  55.   
  56. -- 
  57.  
  58. Ben Broder
  59. {ihnp4,decvax} !hjuxa!catnip!ben
  60. {houxm,clyde}/
  61.  
  62.