Thread View: comp.bugs.sys5
1 messages
1 total messages
Started by Mike Wescott
Mon, 06 Feb 1989 18:57
bug in pr(1) - with fix
Author: Mike Wescott
Date: Mon, 06 Feb 1989 18:57
Date: Mon, 06 Feb 1989 18:57
26 lines
1328 bytes
1328 bytes
If pr is used with an odd page length and double space
is specified, only the first page will get printed.
Fix:
*** /tmp/pr.c.orig Mon Feb 6 10:44:14 1989
--- /tmp/pr.c Mon Feb 6 10:46:06 1989
***************
*** 376,382 ****
p->c_ptr0 = p->c_ptr = s;
if (p == &Colpts[Ncols]) return;
(p++)->c_lno = Lnumb + bline;
! for (j = (Length - Margin)/Dblspace; --j >= 0; ++bline)
for (Inpos = 0; ; ) {
if ((c = getc(Files->f_f)) == EOF) {
for (*s = EOF; p <= &Colpts[Ncols]; ++p)
--- 376,382 ----
p->c_ptr0 = p->c_ptr = s;
if (p == &Colpts[Ncols]) return;
(p++)->c_lno = Lnumb + bline;
! for (j = (Length - Margin + Dblspace - 1)/Dblspace; --j >= 0; ++bline)
for (Inpos = 0; ; ) {
if ((c = getc(Files->f_f)) == EOF) {
for (*s = EOF; p <= &Colpts[Ncols]; ++p)
--
-Mike Wescott
mike.wescott@ncrcae.Columbia.NCR.COM
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads