Replace my EOF fix with better one from sendmail-bugs discussion
Should go into 2.2
This commit is contained in:
parent
10b3d5abf8
commit
98939b4915
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user