aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toys/other/vmstat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toys/other/vmstat.c b/toys/other/vmstat.c
index 5b79702b..ad76a070 100644
--- a/toys/other/vmstat.c
+++ b/toys/other/vmstat.c
@@ -96,7 +96,8 @@ void vmstat_main(void)
// Print headers
if (rows>3 && !(loop % (rows-3))) {
- const char *header = headers;
+ char *header = headers;
+
if (isatty(1)) terminal_size(0, &rows);
else rows = 0;