🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #36928

Re: slrn: curious problem

#36928
From: John E. Davis
Date: Fri, 07 Nov 1997 00:00
26 lines
1348 bytes
Here is a bug-fix for a potentially serious bug.  It should fix the
core dump that was reported.  The patch should be applied to the
function `display_article_line' in art.c.  Do not use a patch program
to apply the patch, just edit the file manually:

--- art.c~	Fri Nov  7 01:39:28 1997
+++ art.c	Fri Nov  7 12:52:13 1997
@@ -7408,13 +7408,14 @@
      {
 	if ((unsigned char)*lbuf > (unsigned char)' ')
 	  {
-	     lbuf = slrn_strchr (l->buf, ':');
+	     lbuf = slrn_strchr (lbuf, ':');
 	     if (lbuf != NULL)
 	       {
 		  lbuf++;
 		  slrn_set_color (SLRN_HEADER_KEYWORD_COLOR);
 		  smg_write_nchars (l->buf, lbuf - l->buf);
 	       }
+	     else lbuf = l->buf;
 	  }
 	slrn_set_color (HEADER_COLOR);
 	smg_write_string (lbuf);

Technical Details
Message-ID: <slrn666loi.7i8.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <63qrtv$qj8$1@ncar.ucar.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn666loi.7i8.davis@aluche.mit.edu>
Subject: Re: slrn: curious problem
Date: Fri, 07 Nov 1997 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <63qrtv$qj8$1@ncar.ucar.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 287738085
Reply-To: davis@space.mit.edu
Organization: Center for Space Research
Newsgroups: news.software.readers