From 98939b4915b5686bf26c35388ff4a3cd41f9eb57 Mon Sep 17 00:00:00 2001 From: ache Date: Fri, 14 Feb 1997 13:57:37 +0000 Subject: [PATCH] Replace my EOF fix with better one from sendmail-bugs discussion Should go into 2.2 --- usr.sbin/sendmail/src/collect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.sbin/sendmail/src/collect.c b/usr.sbin/sendmail/src/collect.c index dec7a8496e83..d5d898296266 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;