home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume2 / sun2ps / Patch1 < prev    next >
Encoding:
Internet Message Format  |  1991-08-07  |  1.5 KB

  1. From: boysko@dsrgsun.CES.CWRU.Edu (Glenn J. Boysko)
  2. Newsgroups: comp.sources.misc
  3. Subject: v02i089: Bug fix for 'sun2ps'
  4. Message-ID: <8804061918.AA00174@dsrgsun.CES.CWRU.Edu>
  5. Date: 6 Apr 88 19:18:15 GMT
  6. Approved: allbery@ncoast.UUCP
  7.  
  8. comp.sources.misc: Volume 2, Issue 89
  9. Submitted-By: "Glenn J. Boysko" <boysko@dsrgsun.CES.CWRU.Edu>
  10. Archive-Name: sun2ps/Patch1
  11.  
  12. [Normal diff.  Someone point this guy at the man page for "diff."  ++bsa]
  13.  
  14. If anyone has noticed that some images have caused a "Premature EOF" error
  15. while running sun2ps, then this patch will fix it. Its in diff-format, so
  16. just cut out the patch and type:
  17.  
  18.     % patch sun2ps.c < patchfile
  19.  
  20. Good luck.  Please let me know of any reported bugs...
  21.  
  22.   0 /        0 /        0 /        0 /        0 /
  23. ---X--CUT-HERE---X--CUT-HERE-----X--CUT-HERE-----X--CUT-HERE-----X--CUT-HERE--
  24.   0 \        0 \        0 \        0 \        0 \
  25.  
  26. 14c14
  27. < *    @(#)sun2ps.c    1.7
  28. ---
  29. > *    @(#)sun2ps.c    1.8
  30. 414c414
  31. <      while (NBytes > 2)
  32. ---
  33. >      while (NBytes > 3)
  34. 453c453
  35. <      /* Send out rem'g 2 bytes in LITERAL mode. */
  36. ---
  37. >      /* Send out rem'g 2-3 bytes in LITERAL mode. */
  38. 456c456,458
  39. <      BufCount = 1;
  40. ---
  41. >      if (NBytes == 3)
  42. >       Buffer[2] = gb(Fp);
  43. >      BufCount = NBytes-1;
  44.  
  45. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  46.  
  47. usenet: {decvax,sun}!mandrill!boysko    *  Glenn Boysko
  48. csnet:  boysko@mandrill.cwru.edu        * "Anyway, they say she comes on a pale
  49. arpa:    boysko@mandrill.cwru.edu        *  horse, but I'm sure I hear a train"
  50.