From 628ac6c6acaeb08fcefcd29014b845d9373cc88e Mon Sep 17 00:00:00 2001 From: Eric Allman Date: Sun, 12 Oct 1980 04:05:11 -0800 Subject: [PATCH] fix MsgId so that sizeof returns > 0 SCCS-vsn: usr.sbin/sendmail/src/main.c 1.10 SCCS-vsn: usr.sbin/sendmail/src/collect.c 1.3 --- usr/src/usr.sbin/sendmail/src/collect.c | 4 +++- usr/src/usr.sbin/sendmail/src/main.c | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/usr/src/usr.sbin/sendmail/src/collect.c b/usr/src/usr.sbin/sendmail/src/collect.c index 7b16b2aebd..c82e81a865 100644 --- a/usr/src/usr.sbin/sendmail/src/collect.c +++ b/usr/src/usr.sbin/sendmail/src/collect.c @@ -2,7 +2,7 @@ # include # include "dlvrmail.h" -static char SccsId[] = "@(#)collect.c 1.2 %G%"; +static char SccsId[] = "@(#)collect.c 1.3 %G%"; /* ** MAKETEMP -- read & parse message header & make temp file. @@ -36,6 +36,8 @@ static char SccsId[] = "@(#)collect.c 1.2 %G%"; ** temp buffer can be deallocated. */ +char MsgId[MAXNAME]; + char * maketemp() { diff --git a/usr/src/usr.sbin/sendmail/src/main.c b/usr/src/usr.sbin/sendmail/src/main.c index 791b721487..7b692fc041 100644 --- a/usr/src/usr.sbin/sendmail/src/main.c +++ b/usr/src/usr.sbin/sendmail/src/main.c @@ -6,7 +6,7 @@ # include # endif LOG -static char SccsId[] = "@(#)main.c 1.9 %G%"; +static char SccsId[] = "@(#)main.c 1.10 %G%"; /* ** DELIVERMAIL -- Deliver mail to a set of destinations @@ -120,7 +120,6 @@ char InFileName[] = "/tmp/mailtXXXXXX"; char Transcript[] = "/tmp/mailxXXXXXX"; addrq From; /* the from person */ char *To; /* the target person */ -char MsgId[MAXNAME]; /* the message-id for this letter */ int HopCount; /* hop count */ int ExitStat; /* the exit status byte */ addrq SendQ; /* queue of people to send to */ -- 2.20.1