Replace my EOF fix with better one from sendmail-bugs discussion

Should go into 2.2
This commit is contained in:
ache 1997-02-14 13:57:37 +00:00
parent 10b3d5abf8
commit 98939b4915

View File

@ -94,7 +94,7 @@ collect(fp, smtpmode, requeueflag, hdrp, e)
volatile bool ignrdot = smtpmode ? FALSE : IgnrDot;
volatile time_t dbto = smtpmode ? TimeOuts.to_datablock : 0;
register char *volatile bp;
volatile int c = '\0';
volatile int c = EOF;
volatile bool inputerr = FALSE;
bool headeronly;
char *volatile buf;
@ -192,7 +192,6 @@ collect(fp, smtpmode, requeueflag, hdrp, e)
c = *--pbp;
else
{
c = EOF;
while (!feof(fp) && !ferror(fp))
{
errno = 0;