summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pstat/pstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/pstat/pstat.c')
-rw-r--r--usr.sbin/pstat/pstat.c6
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;
OpenPOWER on IntegriCloud