From: utzoo!decvax!harpo!eagle!mhtsa!ihnss!ihps3!stolaf!borman
Newsgroups: net.news.b
Title: Error in header.c
Article-I.D.: stolaf.381
Posted: Fri Jun 18 20:51:40 1982
Received: Sun Jun 20 01:15:56 1982


In release 2.7 of Bnews, the file header.c:
At line 41, you have
	fgets(hp->path, BUFLEN, fp);		/* source path */
this should be changed to 
	fgets(hp->path, PATHLEN, fp);		/* source path */
(hp->path is already dimensioned to PATHLEN)

This fixes the problem with long pathnames mentioned in utzoo.2175.
If you don't change this, fgets will only read in BUFLEN chars for
long pathlengths, leaving the rest of the path for the next fgets(),
and thus screwing up the rest of the header.

				-Dave Borman
				St. Olaf College
				ihnss!ihps3!stolaf!borman