Article View: news.software.readers
Article #33773Re: S-Lang macro for slrn - segfault [long]
From: John E. Davis
Date: Wed, 28 May 1997 00:00
Date: Wed, 28 May 1997 00:00
38 lines
1654 bytes
1654 bytes
On 25 May 1997 10:39:00 -0700, E. <erisson@sw-tech.com>
wrote:
> variable cgi =
>"groups=&dates=&fromdate=&todate=&subkects=&authors=";
>
>% That IS all on one line, but I can't post it that way.
I should allow text like this to extend beyond the 80 column limit.
Perhaps, by allowing a ``magic-cookie'' header that slrn would check
to disable the 80 column limit, e.g.,
.slrn: long_lines_ok
where the `.' would indicate that this header contains special
processing instructions for slrn and it would be stripped.
>% Both of these segfault.
>
>% str = strcat ("");
>% str = strcat (" ");
When you say segfault, do you really mean it causes slrn to dump
core? In any case, the syntax is wrong and even if you use:
str = strcat (str, "");
it will not work because `str' is still unitialized. You really want
to use:
str = "";
Nevertheless, the interpreter is not supposed to crash so there must
be a bug somewhere. What version of the slang library are you using?
--John
Technical Details
Message-ID:
<slrn5ombae.hlt.davis@mygir.davis.net>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-mailReferences:
<slrn5ogu8t.pa2.erisson@kallisti.sw-tech.com>Show Full Headers
Complete Article Headers
Message-ID: <slrn5ombae.hlt.davis@mygir.davis.net> Subject: Re: S-Lang macro for slrn - segfault [long] Date: Wed, 28 May 1997 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn5ogu8t.pa2.erisson@kallisti.sw-tech.com> 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: 244420359 Organization: Center for Space Research Newsgroups: news.software.readers