diff options
Diffstat (limited to 'usr.sbin/sendmail/src/readcf.c')
-rw-r--r-- | usr.sbin/sendmail/src/readcf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.sbin/sendmail/src/readcf.c b/usr.sbin/sendmail/src/readcf.c index bd902c0..11a895b 100644 --- a/usr.sbin/sendmail/src/readcf.c +++ b/usr.sbin/sendmail/src/readcf.c @@ -33,7 +33,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)readcf.c 8.23 (Berkeley) 3/18/94"; +static char sccsid[] = "@(#)readcf.c 8.23.1.2 (Berkeley) 2/10/95"; #endif /* not lint */ # include "sendmail.h" @@ -1300,7 +1300,10 @@ setoption(opt, val, safe, sticky, e) break; case 'M': /* define macro */ - define(val[0], newstr(&val[1]), CurEnv); + p = newstr(&val[1]); + if (!safe) + cleanstrcpy(p, p, MAXNAME); + define(val[0], p, CurEnv); sticky = FALSE; break; |