From 2a7bd60222ce3c09208a265ad3a5f1490ccb6768 Mon Sep 17 00:00:00 2001 From: peter Date: Tue, 12 Jan 1999 12:26:57 +0000 Subject: Import sendmail-8.9.2 onto vendor branch (update from 8.9.1) Obtained from: ftp.sendamil.org --- contrib/sendmail/src/macro.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'contrib/sendmail/src/macro.c') diff --git a/contrib/sendmail/src/macro.c b/contrib/sendmail/src/macro.c index c1f9f7b..d45a0c7 100644 --- a/contrib/sendmail/src/macro.c +++ b/contrib/sendmail/src/macro.c @@ -11,7 +11,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)macro.c 8.25 (Berkeley) 5/19/98"; +static char sccsid[] = "@(#)macro.c 8.26 (Berkeley) 11/8/1998"; #endif /* not lint */ # include "sendmail.h" @@ -333,7 +333,7 @@ macid(p, ep) { int mid; register char *bp; - char mbuf[21]; + char mbuf[MAXMACNAMELEN + 1]; if (tTd(35, 14)) { @@ -361,7 +361,7 @@ macid(p, ep) return *p; } bp = mbuf; - while (*++p != '\0' && *p != '}' && bp < &mbuf[sizeof mbuf]) + while (*++p != '\0' && *p != '}' && bp < &mbuf[sizeof mbuf - 1]) { if (isascii(*p) && (isalnum(*p) || *p == '_')) *bp++ = *p; -- cgit v1.1