Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site seismo.CSS.GOV
Path: utzoo!watmath!clyde!cbosgd!seismo!rick
From: rick@seismo.CSS.GOV (Rick Adams)
Newsgroups: net.news.b,net.news.adm
Subject: old bug fix for 2.10.2 news reposted
Message-ID: <806@seismo.CSS.GOV>
Date: Wed, 13-Nov-85 20:26:28 EST
Article-I.D.: seismo.806
Posted: Wed Nov 13 20:26:28 1985
Date-Received: Thu, 14-Nov-85 08:06:20 EST
Organization: Center for Seismic Studies, Arlington, VA
Lines: 28
Keywords: ungetc(EOF)
Xref: watmath net.news.b:1249 net.news.adm:422

Following is an old bug fix that will prevent the  "new" article
eater bug with batching from appearing. Apparently the original
posting never made it to most sites.

---rick


*** inews.c.old	Wed Nov 13 17:13:55 1985
--- inews.c	Wed Nov 13 17:14:35 1985
***************
*** 537,543
  	/* Kludge to get around article truncation problem */
  	if (c == ' ' || c == '\t' )
  		putc('\n', tfp);
! 	putc(c,tfp);
  	while (fgets(bfr, BUFLEN, infp) != NULL)
  		fputs(bfr, tfp);
  

--- 537,544 -----
  	/* Kludge to get around article truncation problem */
  	if (c == ' ' || c == '\t' )
  		putc('\n', tfp);
! 	if (c != EOF)
! 		putc(c,tfp);
  	while (fgets(bfr, BUFLEN, infp) != NULL)
  		fputs(bfr, tfp);