Article View: news.software.readers
Article #21478Important slrn 0.8.8.1 patch
From: da... John E. Davis
Date: Thu, 09 May 1996 00:00
Date: Thu, 09 May 1996 00:00
56 lines
2029 bytes
2029 bytes
Hi,
I urge you to apply the following patch to 0.8.8.1 of slrn. Without this
patch, under certain circumstances slrn will go into an endless loop of
calling your editor while doing a followup. That is, after leaving your
editor, slrn will call it again.
The main patch is to the slrn_get_response function in slrn/src/misc.c
where the line
SLang_Error = SLKeyBoard_Quit = 0;
will get added. The other two minor patches involve commenting out the line
if (SLang_Error) return -1;
at the top of the slrn_get_response and slrn_get_yesno functions. The
actual patch follows below. I apologize for the inconvenience.
--- ../../release/slrn/src/misc.c Sun May 5 23:03:04 1996
+++ misc.c Thu May 9 00:00:11 1996
@@ -544,7 +544,7 @@
va_list ap;
char *v;
- if (SLang_Error) return -1;
+ /* if (SLang_Error) return -1; */
while (1)
{
@@ -570,6 +570,7 @@
ch = SLang_getkey ();
slrn_clear_message ();
+ SLang_Error = SLKeyBoard_Quit = 0;
}
v = valid_chars;
@@ -595,7 +596,7 @@
char ch, rsp;
char *fmt;
- if (SLang_Error) return -1;
+ /* if (SLang_Error) return -1; */
va_start(ap, str);
(void) vsprintf(buf, str, ap);
--
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:
<slrn4p2s6h.370.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!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <slrn4p2s6h.370.davis@aluche.mit.edu> Subject: Important slrn 0.8.8.1 patch Date: Thu, 09 May 1996 00:00:00 +0000 From: da...@space.mit.edu (John E. Davis) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail X-Deja-AN: 153830878 Organization: Center for Space Research Reply-to: da...@space.mit.edu Newsgroups: news.software.readers,alt.lang.s-lang