diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-16 01:17:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-06-16 01:17:09 +0000 |
commit | 13504ad958d6c727d842b1f2bda7f17b50c877e8 (patch) | |
tree | b1fd0ac9193e184d4ce3a9519c3ad13f2b7887c1 /bin/ps | |
parent | 7b6cdcd4619f6d36662e6b066505de2a11169a2e (diff) |
allocate large enough buffer; netbsd pr#2550; gsstark@mit.edu
Diffstat (limited to 'bin/ps')
-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 '-' |