summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-06-05 01:01:20 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-06-05 01:01:20 +0000
commita89d0c4dbc827dafef1271dbabaef50b77d3094c (patch)
treebd2f0ed2de572bc446f82bcfe88fd85ea3a957f2
parent90bd45f1c5c8a075d47c1541f739e787e81c451b (diff)
Notes
-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);
}