🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #2361

SUMMARY + FIX: Lines = -1 instead of ? in Layout 2

#2361
From: J. Porter Clark
Date: Sun, 19 Jan 1992 02:36
49 lines
2341 bytes
On 8 Jan 1992 I posted this:

>Am I the only one with this problem?  Shift to layout 2 in selection
>mode (hit " until you get there) and see what happens to articles with
>no "Lines:" headers.  I get "-1" for the number of lines instead of
>"?".  Annoying, not fatal.

There's a one-line fix that will make this go away.
kaminski@netcom.netcom.com (Peter Kaminski) pointed out the offending
line; it was a snap to fix.  I've provided a patch below.  I'm using
the unofficial "patchlevel 18" but it will probably work on 16 as
well.

thomasm@mechti.ruhr.de (Thomas Mechtersheimer) sent me a patch which
eliminates the source of the problem somehow.  This is his description
of that patch:

>Here is the patch to news.c (to nn 6.4 PL 16) to count the lines if there is
>no Lines:-Header. And some changes to menu.c that remove some problems with
>highlighting with merged-subject menus.

I didn't include his patch with this humble offering.  I haven't had a
chance to test it, either.  My menu.c is so heavily hacked that 4 out
of 16 hunks (I think it was) failed, and I haven't had the time to sort
it all out.  Thanks anyway, Thomas.
================================================================

*** menu.c.18	Sat Jan 18 19:41:11 1992
--- menu.c	Sat Jan 18 20:04:38 1992
***************
*** 363,369 ****
  
       case 2:
  	lsubj -= 6;
! 	so_printf("%5d ", ah->lines);
  	break;
  
       case 3:
--- 363,369 ----
  
       case 2:
  	lsubj -= 6;
! 	so_printf(ah->lines >=0 ? "%5d " : "    ? ", ah->lines);
  	break;
  
       case 3:
--
J. Porter Clark    jpc@avdms8.msfc.nasa.gov or jpc@eb23.msfc.nasa.gov
NASA/MSFC Communications Systems Branch
Technical Details
Message-ID: <jpc.695788608@avdms8.msfc.nasa.gov>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!elroy.jpl.nasa.gov!freedom.msfc.nasa.gov!avdms8!jpc

Show Full Headers
Complete Article Headers
Message-ID: <jpc.695788608@avdms8.msfc.nasa.gov>
Subject: SUMMARY + FIX: Lines = -1 instead of ? in Layout 2
Date: Sun, 19 Jan 1992 02:36:48 +0000
From: jpc@avdms8.msfc.nasa.gov (J. Porter Clark)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!elroy.jpl.nasa.gov!freedom.msfc.nasa.gov!avdms8!jpc
Newsgroups: news.software.nn
Keywords: nn layout 2 line count
Sender: root@freedom.msfc.nasa.gov (Super-User)
Organization: NASA/MSFC
Lines: 49