From mipos3!omepd!littlei!uunet!husc6!necntc!ncoast!allbery Sat Apr 9 17:01:11 PDT 1988 Article 345 of comp.sources.misc: Path: td2cad!mipos3!omepd!littlei!uunet!husc6!necntc!ncoast!allbery From: boysko@dsrgsun.CES.CWRU.Edu (Glenn J. Boysko) Newsgroups: comp.sources.misc Subject: v02i089: Bug fix for 'sun2ps' Message-ID: <8804061918.AA00174@dsrgsun.CES.CWRU.Edu> Date: 6 Apr 88 19:18:15 GMT Sender: allbery@ncoast.UUCP Reply-To: boysko@dsrgsun.CES.CWRU.Edu (Glenn J. Boysko) Lines: 42 Approved: allbery@ncoast.UUCP comp.sources.misc: Volume 2, Issue 89 Submitted-By: "Glenn J. Boysko" Archive-Name: sun2ps/Patch1 comp.sources.misc: Volume 2, Issue 89 Submitted-By: "Glenn J. Boysko" 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@mandrill.cwru.edu * "Anyway, they say she comes on a pale arpa: boysko@mandrill.cwru.edu * horse, but I'm sure I hear a train"