Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 Apollo 10/31/84; site apollo.uucp Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!wivax!apollo!rees From: rees@apollo.uucp (Jim Rees) Newsgroups: net.news Subject: Re: The 0 lines bug Message-ID: <22dd06b2.1de6@apollo.uucp> Date: Fri, 9-Nov-84 10:53:12 EST Article-I.D.: apollo.22dd06b2.1de6 Posted: Fri Nov 9 10:53:12 1984 Date-Received: Sat, 10-Nov-84 10:14:45 EST References: <445@cbosgd.UUCP> <8900001@rna.UUCP> Organization: Apollo Computer, Chelmsford, Mass. Lines: 26 There seems to have been a lot of discussion recently about the 0 lines bug. At the risk of being redundant, I will post the "official" fix once again. In inews.c: *************** *** 622,628 fgets(bfr, BUFLEN, stdin); header.intnumlines -= 2; ! sprintf(header.numlines, "%d", header.intnumlines); /* Strip trailing " - (nf)" */ if ((cp = rindex(header.title, '-')) != NULL --- 643,651 ----- fgets(bfr, BUFLEN, stdin); header.intnumlines -= 2; ! /* if no lines header, it'll be added later */ ! if (header.numlines[0]) ! sprintf(header.numlines, "%d", header.intnumlines); /* Strip trailing " - (nf)" */ if ((cp = rindex(header.title, '-')) != NULL