From:	AITGW::"dorner@T500M0.TELEMATIK.INFORMATIK.UNI-KARLSRUHE.DE" "Thomas Dorner"  2-SEP-1991 13:21:34.23
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
CC:	
Subj:	Minor Bug in NewsUtility.C

Received: by AITGW.DECnet (utk-mail11 v1.5) ; Mon, 2 Sep 91 13:21:45 EDT
Received: from vm1.NoDak.edu by aitgw.ge.com (5.61/GE Gateway 1.3T)
	id AA04089; Mon, 2 Sep 91 13:21:37 -0400
Message-Id: <9109021721.AA04089@aitgw.ge.com>
Received: from NDSUVM1.BITNET by VM1.NoDak.EDU (IBM VM SMTP R1.2.1MX) with BSMTP id 5832; Mon, 02 Sep 91 12:19:58 CDT
Received: from NDSUVM1.BITNET by NDSUVM1.BITNET (Mailer R2.07) with BSMTP id
 7327; Mon, 02 Sep 91 12:19:50 CDT
Date:         Mon, 2 Sep 1991 16:30:23 GMT
Reply-To: Thomas Dorner
              <dorner@T500M0.TELEMATIK.INFORMATIK.UNI-KARLSRUHE.DE>
Sender: ANU-NEWS Discussion <ANU-NEWS@VM1.NoDak.EDU>
Comments:     Warning -- original Sender: tag was news@IRA.UKA.DE
From: Thomas Dorner
              <dorner@T500M0.TELEMATIK.INFORMATIK.UNI-KARLSRUHE.DE>
Subject:      Minor Bug in NewsUtility.C
To: Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
 
Hi everybody,
 
I just found this little bug in ANU-NEWS V6.0-3 (14-Mar-1991).
 
The result of this bug was that nobody could post/followup to our newsgroups
because the string containing the filename of the posting file was reset by
genid.
 
This bug occured only after serveral month without any fault, but then number
used for the ID climed from 99 to 100 and genid became to long.
 
We have a very long nodename (almost 40 characters), so systems with shorter
names wont notice the bug anyway.
 
And here is the patch, for your delight:
 
************
File $34$DKA300:[TMP.NEWS_SRC]NEWSUTILITY.C;474
 1067     if (strlen(genid) >= IDLEN)   /* Don't let gen_id() scramble other str
ings! */
 1068       { genid[IDLEN-1] = 0; genid[IDLEN-2] = '>'; }
 1069     return(genid);
******
File $34$DKA300:[TMP.NEWS_SRC]NEWSUTILITY.C;472
 1067     return(genid);
************
 
Number of difference sections found: 1
Number of difference records found: 2
 
DIFFERENCES /IGNORE=()/MERGED=1/OUTPUT=$34$DKA300:[TMP.NEWS_SRC]NEWSUTILITY.DIFF
;2-
    $34$DKA300:[TMP.NEWS_SRC]NEWSUTILITY.C;474-
    $34$DKA300:[TMP.NEWS_SRC]NEWSUTILITY.C;472
+--------------------------+-----------------------------------------------+
| Thomas Dorner,           | I speak only for myself.                      |
| Institute of Telematics, +-----------------------------------------------+
| University of Karlsruhe, | FIRST Law of Computer Science:                |
| Germany                  | Any program contains at least one hidden bug. |
+--------------------------+-----------------------------------------------+
| Internet: dorner@telematik.informatik.uni-karlsruhe.de                   |
|       or: dorner%i70vca@iravcl.ira.uka.de                                |
| UUCP:     ...!uunet!unido!telematik.informatik.uni-karlsruhe.de!dorner   |
| EAN:      S=dorner;OU=telematik;OU=informatik;P=uni-karlsruhe;A=dbp;C=de |
+--------------------------------------------------------------------------+
