summaryrefslogtreecommitdiffstats
path: root/bin/ps
diff options
context:
space:
mode:
authorguido <guido@FreeBSD.org>1997-03-10 19:10:08 +0000
committerguido <guido@FreeBSD.org>1997-03-10 19:10:08 +0000
commitb27e3f2aefb500c7e0531c230663394cbf74518c (patch)
tree48001b184e4e41a2f628470cde9871eae74ccc13 /bin/ps
parenta104d2dec77acbcbeade38448200c142ba1cf356 (diff)
downloadFreeBSD-src-b27e3f2aefb500c7e0531c230663394cbf74518c.zip
FreeBSD-src-b27e3f2aefb500c7e0531c230663394cbf74518c.tar.gz
Fix buffer overflow (probably unexploitable).
Diffstat (limited to 'bin/ps')
-rw-r--r--bin/ps/fmt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ps/fmt.c b/bin/ps/fmt.c
index 21c5df0..132cc3d 100644
--- a/bin/ps/fmt.c
+++ b/bin/ps/fmt.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: fmt.c,v 1.9 1997/02/22 14:05:00 peter Exp $
*/
#ifndef lint
@@ -59,7 +59,7 @@ shquote(argv)
char **argv;
{
char **p, *dst, *src;
- static char buf[ARG_MAX]; /* XXX */
+ static char buf[4*ARG_MAX]; /* XXX */
if (*argv == 0) {
buf[0] = 0;
OpenPOWER on IntegriCloud