🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #38662

Re: Patch: trn seg faults on newsgroup names > 127 chars

#38662
From: Dan Harkless
Date: Thu, 12 Feb 1998 00:00
33 lines
1987 bytes
In article <6bttmf$cer$1@speedx1.speed.net>, I wrote:
> >   690:     np->numoffset = (char)len + 1;
>     691:                                 /* remember where the numbers are */
>     692:     *s = '\0';                  /* null terminate newsgroup name */
>     693: }
>
>'len' is an int.  'np->numoffset' is an int.  But for some reason for the
>duration of the expression, we pretend we're dealing with 7 bit signed
>values.  Why?!?

To answer my own question:  

I dug out the trn 3.6 source and I see that we didn't used to assign to
np->numoffset.  We instead assigned to an element of an array of char.  So I
guess trn 3.6 users are just out of luck if their server carries long group
names like:

>alt.karl-kleinpaste.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die.die

My patch won't help them -- I recommend they upgrade to trn4 (currently in
beta).  Check out:

    http://www.clari.net/~wayne/

--
Dan Harkless          Unitech Research, Inc.         <dan_feb98@unitech.com>

NOTE:  This is a monthly mail alias used to post to the Usenet without
conSPAMinating my real address.  If you are replying after February 1998,
your mail may bounce.  If so, replace 'feb' with the current month's abbrev.

Technical Details
Message-ID: <6bu35t$e8q$1@speedx1.speed.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-mail
References: <6bttmf$cer$1@speedx1.speed.net>

Show Full Headers
Complete Article Headers
Message-ID: <6bu35t$e8q$1@speedx1.speed.net>
Subject: Re: Patch: trn seg faults on newsgroup names > 127 chars
Date: Thu, 12 Feb 1998 00:00:00 +0000
From: Dan Harkless <dan_feb98@unitech.com>
References: <6bttmf$cer$1@speedx1.speed.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-mail
X-Deja-AN: 324360823
Organization: Unitech Research, Inc. -- Irvine, California, USA
Newsgroups: news.software.readers
Originator: dlh@unitech.com (Dan L. Harkless)