[net.news.b] old bug fix for 2.10.2 news reposted

rick@seismo.CSS.GOV (Rick Adams) (11/14/85)

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);