From ebe0ac8fd2e783327c76fe23b0dbe715c2987ed1 Mon Sep 17 00:00:00 2001 From: ache Date: Mon, 30 Apr 2007 15:16:19 +0000 Subject: Preparing for upcoming POSIXed putenv() rewrite: don't allow const as putenv() arg, dup it --- usr.sbin/pstat/pstat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin/pstat') 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; -- cgit v1.1