[net.news.b] fix for hfgets in header.c

wan@gatech.UUCP (Peter N. Wan) (01/31/84)

While hacking in Guy Riddle's changes to fix the "truncated articles"
bug, I noticed an error in our news source (and it was in Guy's fix).
The line prefixed with "!" below was commented as "skip white space",
but what it actually does is get rid of blanks and 't's.  The fix is
very simple, but I haven't noticed anyone else posting a fix.... 'Diff'
output follows:

---

*** oheader.c	Mon Jan 30 17:45:11 1984
--- header.c	Mon Jan 30 17:44:22 1984
***************
*** 559,565
  
  	while ((c = getc(fp)) == ' ' || c == '\t') {	/* for each cont line */
  		/* Continuation line. */
! 		while ((c = getc(fp)) == ' ' || c == 't')	/* skip white space */
  			;
  		if (tp-cp < len) {*tp++ = ' '; *tp++ = c;}
  		while ((c = getc(fp)) != '\n' && c != EOF)

--- 559,565 -----
  
  	while ((c = getc(fp)) == ' ' || c == '\t') {	/* for each cont line */
  		/* Continuation line. */
! 		while ((c = getc(fp)) == ' ' || c == '\t')	/* skip white space */
  			;
  		if (tp-cp < len) {*tp++ = ' '; *tp++ = c;}
  		while ((c = getc(fp)) != '\n' && c != EOF)
-- 
Peter N Wan
WHAT  : GaTech System Administrator, CSNET Liaison
MAIL  : School of ICS, Georgia Tech, Atlanta, Georgia  30332
BELL  : (404) 894-3658 [office] / (404) 894-3152 [messages]
UUCP  : ...!{akgua,allegra,emory,rlgvax,sb1,ut-ngp,ut-sally}!gatech!wan
ARPA  : wan.gatech@CSNet-Relay 			CSNET : wan@gatech