🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #27112

Re: Slrn 0.9.1.0 problems

#27112
From: John E. Davis
Date: Tue, 22 Oct 1996 00:00
41 lines
1951 bytes
On 22 Oct 1996 14:56:58 GMT, Yeechang Lee <ylee@simile.cc.columbia.edu>
wrote:
>I can confirm it suffers a segmentation fault under SunOS too.
>http://www.columbia.edu/~ylee/

Here is a bug-fix.  I also released 0.9.1.1 with the bug fix.  The bug
only manifests itself in 0.9.1.0 if you do not specify a quote string
in your .slrnrc file or you specify on using the obsolete syntax.
This is the reason why I never saw the bug.

--- /nfs/wiwaxia/h1/davis/d1/src/release/slrn/src/post.c	Mon Oct 21 01:59:34 1996
+++ post.c	Tue Oct 22 13:55:39 1996
@@ -383,13 +383,17 @@
    /* Now body.  Check for non-quoted lines. */
    if (err == NULL) 
      {
-	unsigned int qlen = strlen (Slrn_Quote_String);
+	char *qs = Slrn_Quote_String;
+	unsigned int qlen;
+	
+	if (qs == NULL) qs = ">";
+	qlen = strlen (qs);
 	
 	err = "Your message does not appear to have any unquoted text.";
 	while (NULL != fgets (line, sizeof (line), fp))
 	  {
 	     num++;
-	     if (!strncmp (line, Slrn_Quote_String, qlen))
+	     if (!strncmp (line, qs, qlen))
 	       continue;
 	     
 	     colon = slrn_skip_whitespace (line);


-- 
John E. Davis                   Center for Space Research/AXAF Science Center
617-258-8119                    MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis

Technical Details
Message-ID: <slrn56q3tv.a52.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: <54ild0$s1n@oravannahka.Helsinki.FI> <54inbq$qfe@apakabar.cc.columbia.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn56q3tv.a52.davis@aluche.mit.edu>
Subject: Re: Slrn 0.9.1.0 problems
Date: Tue, 22 Oct 1996 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <54ild0$s1n@oravannahka.Helsinki.FI> <54inbq$qfe@apakabar.cc.columbia.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: 191288966
Organization: Center for Space Research
Reply-to: davis@space.mit.edu
Newsgroups: news.software.readers