diff options
author | ache <ache@FreeBSD.org> | 2007-04-30 13:07:33 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2007-04-30 13:07:33 +0000 |
commit | 769eaedef1ba6d1b3f90c387660514d14a69a7d3 (patch) | |
tree | 6313b5746518b576d3675b66a11df9841f0cc9a4 /usr.sbin/sade/variable.c | |
parent | b04643bc9f5bc3bd642fc287b0fb3659815b8d95 (diff) | |
download | FreeBSD-src-769eaedef1ba6d1b3f90c387660514d14a69a7d3.zip FreeBSD-src-769eaedef1ba6d1b3f90c387660514d14a69a7d3.tar.gz |
Prepare for upcoming POSIXed putenv() rewrite:
don't allow putenv() arg be on the stack, use strdup()
Diffstat (limited to 'usr.sbin/sade/variable.c')
-rw-r--r-- | usr.sbin/sade/variable.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/sade/variable.c b/usr.sbin/sade/variable.c index bbbc2d2..f09819e 100644 --- a/usr.sbin/sade/variable.c +++ b/usr.sbin/sade/variable.c @@ -307,7 +307,7 @@ pvariable_set(char *var) if (index(var, '=') == NULL) msgFatal("Invalid variable format: %s", var); strlcat(tmp, var, 1024); - putenv(tmp); + (void)putenv(strdup(tmp)); } char * |