diff options
| author | Peter Wemm <peter@FreeBSD.org> | 1999-01-12 12:26:57 +0000 |
|---|---|---|
| committer | Peter Wemm <peter@FreeBSD.org> | 1999-01-12 12:26:57 +0000 |
| commit | 065a643db393fd78e62e8b414b4789e13fbdb5ae (patch) | |
| tree | 8d45e99e5e320ab4e55408b355a04b2be475a0ed /contrib/sendmail/src/macro.c | |
| parent | c2aa98e247e56d5266d789dfc9b90b524b0019fe (diff) | |
Notes
Diffstat (limited to 'contrib/sendmail/src/macro.c')
| -rw-r--r-- | contrib/sendmail/src/macro.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/sendmail/src/macro.c b/contrib/sendmail/src/macro.c index c1f9f7bb06cf..d45a0c7080e9 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; |
