v02i089: Bug fix for 'sun2ps'

Glenn J. Boysko boysko at dsrgsun.CES.CWRU.Edu
Thu Apr 7 05:18:15 AEST 1988


Submitted-By: "Glenn J. Boysko" <boysko at dsrgsun.CES.CWRU.Edu>

Archive-Name: sun2ps/Patch1


comp.sources.misc: Volume 2, Issue 89
Submitted-By: "Glenn J. Boysko" <boysko at dsrgsun.CES.CWRU.Edu>
Archive-Name: sun2ps/Patch1

[Normal diff.  Someone point this guy at the man page for "diff."  ++bsa]

If anyone has noticed that some images have caused a "Premature EOF" error
while running sun2ps, then this patch will fix it. Its in diff-format, so
just cut out the patch and type:

	% patch sun2ps.c < patchfile

Good luck.  Please let me know of any reported bugs...

  0 /		0 /		0 /		0 /		0 /
---X--CUT-HERE---X--CUT-HERE-----X--CUT-HERE-----X--CUT-HERE-----X--CUT-HERE--
  0 \		0 \		0 \		0 \		0 \

14c14
< *	@(#)sun2ps.c	1.7
---
> *	@(#)sun2ps.c	1.8
414c414
<      while (NBytes > 2)
---
>      while (NBytes > 3)
453c453
<      /* Send out rem'g 2 bytes in LITERAL mode. */
---
>      /* Send out rem'g 2-3 bytes in LITERAL mode. */
456c456,458
<      BufCount = 1;
---
>      if (NBytes == 3)
> 	  Buffer[2] = gb(Fp);
>      BufCount = NBytes-1;

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

usenet: {decvax,sun}!mandrill!boysko    *  Glenn Boysko
csnet:  boysko at mandrill.cwru.edu        * "Anyway, they say she comes on a pale
arpa:	boysko at mandrill.cwru.edu        *  horse, but I'm sure I hear a train"



More information about the Comp.sources.misc mailing list