diff options
author | pst <pst@FreeBSD.org> | 1995-02-23 00:20:00 +0000 |
---|---|---|
committer | pst <pst@FreeBSD.org> | 1995-02-23 00:20:00 +0000 |
commit | 37063bd4edb87b70b019d35bddf18209ab478c44 (patch) | |
tree | c2ec59123a60e285b451f58acfbedc78a4aab7f2 /usr.sbin/sendmail/src/readcf.c | |
parent | babe0fd0e29aedfa2e1d473fbb3dcec915a3b575 (diff) | |
download | FreeBSD-src-37063bd4edb87b70b019d35bddf18209ab478c44.zip FreeBSD-src-37063bd4edb87b70b019d35bddf18209ab478c44.tar.gz |
Sendmail 8.6.10 update for security problems.
Imported on CSRG/V_8_6_10 branch.
Obtained from: CSRG/Allman
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; |