diff options
author | ache <ache@FreeBSD.org> | 2007-04-30 15:16:19 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2007-04-30 15:16:19 +0000 |
commit | ebe0ac8fd2e783327c76fe23b0dbe715c2987ed1 (patch) | |
tree | 2cbffdde642e13a49b570bc57e1bf516436f79e3 /usr.sbin/pstat | |
parent | 4d05f6527a4147faafcf78f1155960ea78989153 (diff) | |
download | FreeBSD-src-ebe0ac8fd2e783327c76fe23b0dbe715c2987ed1.zip FreeBSD-src-ebe0ac8fd2e783327c76fe23b0dbe715c2987ed1.tar.gz |
Preparing for upcoming POSIXed putenv() rewrite:
don't allow const as putenv() arg, dup it
Diffstat (limited to 'usr.sbin/pstat')
-rw-r--r-- | usr.sbin/pstat/pstat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index 95f782c..8fdd83d 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -135,16 +135,16 @@ main(int argc, char *argv[]) fileflag = 1; break; case 'g': - putenv("BLOCKSIZE=1G"); + putenv(strdup("BLOCKSIZE=1G")); break; case 'h': humanflag = 1; break; case 'k': - putenv("BLOCKSIZE=1K"); + putenv(strdup("BLOCKSIZE=1K")); break; case 'm': - putenv("BLOCKSIZE=1M"); + putenv(strdup("BLOCKSIZE=1M")); break; case 'M': memf = optarg; |