Thread View: news.software.readers
2 messages
2 total messages
Started by Jason 'Think!' Steiner
Wed, 14 Apr 1993 05:24
TIN bug?
Author: Jason 'Think!' Steiner
Date: Wed, 14 Apr 1993 05:24
Date: Wed, 14 Apr 1993 05:24
15 lines
1348 bytes
1348 bytes
i recently switched from tin PL2 to PL9. (finally got tired of waiting for the system people here to update it...) it's great, but i've been encountering a rather annoying bug. 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. jason -- `,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,` `,` "...And I didn't even need pants!!" - Dilbert explains the internet `,` `,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,` steiner@jupiter.cse.utoledo.edu `,`,`,`
Re: TIN bug?
Author: 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 `,`,`,`
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads