diff options
author | ache <ache@FreeBSD.org> | 1997-02-14 13:57:37 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-02-14 13:57:37 +0000 |
commit | 98939b4915b5686bf26c35388ff4a3cd41f9eb57 (patch) | |
tree | 783a78dc39c257dff2fbcd2257072f2a5841ae3b /usr.sbin | |
parent | 10b3d5abf856f043c36cba06071549cb6c93a0ca (diff) | |
download | FreeBSD-src-98939b4915b5686bf26c35388ff4a3cd41f9eb57.zip FreeBSD-src-98939b4915b5686bf26c35388ff4a3cd41f9eb57.tar.gz |
Replace my EOF fix with better one from sendmail-bugs discussion
Should go into 2.2
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/sendmail/src/collect.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/sendmail/src/collect.c b/usr.sbin/sendmail/src/collect.c index dec7a84..d5d8982 100644 --- a/usr.sbin/sendmail/src/collect.c +++ b/usr.sbin/sendmail/src/collect.c @@ -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; |