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); }