Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!godot!harvard!seismo!brl-tgr!gwyn From: gwyn@brl-tgr.ARPA (Doug Gwyn ) Newsgroups: net.bugs.usg Subject: Re: PIC bug Message-ID: <5490@brl-tgr.ARPA> Date: Sun, 28-Oct-84 23:14:55 EST Article-I.D.: brl-tgr.5490 Posted: Sun Oct 28 23:14:55 1984 Date-Received: Tue, 30-Oct-84 01:17:18 EST References: <5334@brl-tgr.ARPA> Distribution: net Organization: Ballistic Research Lab Lines: 21 > For anyone who is using the OLDTROFF flavor of PIC (the one that > drives pre-Device Independent TROFF), one of the fellows here > uncovered a bug. In some cases, the DDAed dots output to simulate > one of the graphic primitives (e.g., a line) will produce output > text lines that are too long for other software such as "tbl". > There is a test for this in the code but it is wrong. > > Around line 518 in source file "pltroff.c", change > > if (nput++ > 100) { /* crude approx: troff input buffer ~ 400 */ > > to > > /* DAG -- bug fix (100 is too much since h,v motions are interspersed) */ > if (nput++ > 40) { /* crude approx: troff input buffer ~ 400 */ Oops, I miscounted characters (forgot that there could be minus signs). I believe the following is correct but you could make it "25" to play safe: /* DAG -- bug fix (100 is too much since h,v motions are interspersed) */ if (nput++ > 28) { /* crude approx: troff input buffer ~ 400 */