diff options
-rw-r--r-- | bin/ps/ps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/ps.c b/bin/ps/ps.c index 83f6ff96328..8e116161eac 100644 --- a/bin/ps/ps.c +++ b/bin/ps/ps.c @@ -432,7 +432,7 @@ kludge_oldps_options(s) char *newopts, *ns, *cp; len = strlen(s); - if ((newopts = ns = malloc(len + 2)) == NULL) + if ((newopts = ns = malloc(len + 3)) == NULL) err(1, NULL); /* * options begin with '-' |