Article View: news.software.readers
Article #27107slrn 0.9.1.0 bug (was Re: slrn 0.9.1 newsreader available)
From: John E. Davis
Date: Tue, 22 Oct 1996 00:00
Date: Tue, 22 Oct 1996 00:00
48 lines
2191 bytes
2191 bytes
On 21 Oct 1996 18:02:08 GMT, John E. Davis <davis@space.mit.edu>
wrote:
>slrn version 0.9.1 is now available from
>
> ftp://space.mit.edu/pub/davis/slrn
>
>It should be appearing at various mirror sites including:
>
> ftp://ftp.uni-stuttgart.de:/pub/unix/misc/slang
> ftp://ftp.prz.tu-berlin.de/pub/unix/news/reader/slrn
> ftp://ftp.ntua.gr/pub/lang/slang/
Unfortunately, 0.9.1.0 has a nasty bug that is triggered if the user
does not specify a quote string. I corrected the bug and released
0.9.1.1 with the bug fix.
Here is a patch for 0.9.1.0:
--- /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:
<slrn56q4fn.a52.davis@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.network.mbox.zip!not-for-mailReferences:
<slrn56nekm.5ct.davis@aluche.mit.edu>Show Full Headers
Complete Article Headers
Message-ID: <slrn56q4fn.a52.davis@aluche.mit.edu> Subject: slrn 0.9.1.0 bug (was Re: slrn 0.9.1 newsreader available) Date: Tue, 22 Oct 1996 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn56nekm.5ct.davis@aluche.mit.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.os.linux.network.mbox.zip!not-for-mail X-Deja-AN: 191285985 Organization: Center for Space Research Reply-to: davis@space.mit.edu Newsgroups: news.software.readers,alt.lang.s-lang,comp.os.linux.network,comp.os.vms