summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bin/ps/keyword.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index e1ff7ba86070..0e4241a33232 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -285,7 +285,7 @@ findvar(char *p)
warnx("%s: keyword not found", p);
eval = 1;
} else if (hp)
- v->header = hp;
+ v->header = strdup(hp);
return (v);
}