Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-adm!brl-smoke!gwyn From: gwyn@brl-smoke.ARPA (Doug Gwyn ) Newsgroups: net.bugs.usg Subject: SVR2 "pr" bug fix Message-ID: <827@brl-smoke.ARPA> Date: Wed, 14-May-86 00:38:46 EDT Article-I.D.: brl-smok.827 Posted: Wed May 14 00:38:46 1986 Date-Received: Sun, 25-May-86 11:41:44 EDT Distribution: net Organization: Ballistic Research Lab (BRL) Lines: 13 As reported (problem id #743) in the UNIX System V Known Problem List, the command "pr -d -2 -l61" (any odd page length, multi-column output) results in only one page of output. Here is what I believe to be a fix for this bug. ... char xxxnotused[] = "@(#)pr.c 1.3"; ... nexbuf() ... /* DAG -- bug fix (added "+ Dblspace - 1" in the following line) */ for (j = (Length - Margin + Dblspace - 1)/Dblspace; --j >= 0; ++bline) ...