Article View: news.software.readers
Article #3882Re: TIN bug?
From: Jason 'Think!' Steiner
Date: Wed, 14 Apr 1993 07:38
Date: Wed, 14 Apr 1993 07:38
31 lines
1894 bytes
1894 bytes
Jason 'Think!' Steiner (steiner@jupiter.cse.utoledo.edu) writes:
>
> following up or replying to a base article sometimes causes a
> SIGSEGV(11). this only happens if i attempt to quote the article.
> (i.e. 'f'/'r' will fail, but 'F'/'R' works.) i'm running as
> NNTP_ONLY on a sun 4 with SunOS 4.1.2.
well, i found the bug myself. yay, rah, all that stuff. the real
problem is that the article i'm following-up to has no author name.
and the section of strfquote() that handles %N doesn't check to see if
arts[respnum].name actually -exists- before trying to strcpy it into
the attribution string.
here's the fix...
-----8<-- cut here --8<-----
1166c1166,1170
< strcpy (tbuf, arts[respnum].name);
---
> if(arts[respnum].name) {
> strcpy (tbuf, arts[respnum].name);
> } else {
> strcpy (tbuf, arts[respnum].from);
> }
-----8<-- cut here --8<-----
jason
--
`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`
`,` PGP mail welcome. Finger this account for a copy of my public key. `,`
`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,` steiner@jupiter.cse.utoledo.edu `,`,`,`
Technical Details
Message-ID:
<1993Apr14.073800.3189@uoft02.utoledo.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!bgsuvax!uoft02.utoledo.edu!jupiter!steinerReferences:
<1993Apr14.052454.3187@uoft02.utoledo.edu>Show Full Headers
Complete Article Headers
Message-ID: <1993Apr14.073800.3189@uoft02.utoledo.edu> Subject: Re: TIN bug? Date: Wed, 14 Apr 1993 07:38:00 +0000 From: steiner@jupiter.cse.utoledo.edu (Jason 'Think!' Steiner) References: <1993Apr14.052454.3187@uoft02.utoledo.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!bgsuvax!uoft02.utoledo.edu!jupiter!steiner Newsgroups: news.software.readers Nntp-Posting-Host: jupiter.cse.utoledo.edu X-Newsreader: TIN [version 1.1 PL9] Lines: 31