Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: utzoo!linus!genrad!decvax!harpo!eagle!mhuxt!mhuxi!mhuxa!houxm!ihnp4!stolaf!borman
From: borman@stolaf.UUCP
Newsgroups: net.news.b,net.sources
Subject: bugfix for pager for readnews
Message-ID: <1070@stolaf.UUCP>
Date: Wed, 6-Jul-83 00:04:28 EDT
Article-I.D.: stolaf.1070
Posted: Wed Jul  6 00:04:28 1983
Date-Received: Fri, 1-Jul-83 04:59:54 EDT
Lines: 35

Opps... good old Murphy never fails.  In the pager for readnews that I
recently posted, three if() statments are incorrect and should be changed
as follows. Two are in readr.c, and one in pager.c. If you don't make this
change articles may scroll off the screen when changing newsgroups.

In readr.c
change
 	if (NLINES(h, fp) > (((rflag && bit < 1) || (bit > ngsize))? 12 : 17)
 		&& *PAGER) {
to
	if (NLINES(h, fp) >
	    (((rflag && bit < 1) || (bit >= ngsize))? LNCNT - 5 : LNCNT)
		&& *PAGER) {

and change
 		if (NLINES(h, fd) >
 		 (((rflag && bit < 1) || (bit > ngsize))? LNCNT - 5 : LNCNT)
 		 && *PAGER) {

to
		if (NLINES(h, fd) >
		 (((rflag && bit < 1) || (bit >= ngsize)) ? LNCNT - 5 : LNCNT)
		 && *PAGER) {

In pager.c change
	   if (i > (((rflag && bit < 1) || (bit>ngsize)) ? LNCNT - 5 : LNCNT)) {
to
	   if (i > (((rflag && bit<1) || (bit>=ngsize)) ? LNCNT - 5 : LNCNT)) {


			Sorry 'bout that, but the moment you
			post something, you'll be sure to find
			the bugs....
				-Dave Borman, St. Olaf College
				{ihnp4, harpo}!stolaf!borman