summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2007-11-01 19:19:49 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2007-11-01 19:19:49 +0000
commitaa706bf858eed0bdebd607aabda41cb07b67fa7a (patch)
tree6b1c186b3cadb364d2275b91df48f53b812b9b13
parent9948c0b961167545f919383e0140d4c7635f8952 (diff)
bump arbitrary limit on arg length shown by -C; requested by and ok deraadt@
-rw-r--r--usr.bin/top/machine.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/top/machine.c b/usr.bin/top/machine.c
index 3eaa05dcb00..dea641c47e1 100644
--- a/usr.bin/top/machine.c
+++ b/usr.bin/top/machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machine.c,v 1.62 2007/07/27 13:57:50 deraadt Exp $ */
+/* $OpenBSD: machine.c,v 1.63 2007/11/01 19:19:48 otto Exp $ */
/*-
* Copyright (c) 1994 Thorsten Lockert <tholo@sigmasoft.com>
@@ -75,7 +75,7 @@ static char header[] =
#define UNAME_START 6
#define Proc_format \
- "%5d %-8.8s %3d %4d %5s %5s %-8s %-7.7s %6s %5.2f%% %.50s"
+ "%5d %-8.8s %3d %4d %5s %5s %-8s %-7.7s %6s %5.2f%% %s"
/* process state names for the "STATE" column of the display */
/*
@@ -425,8 +425,7 @@ state_abbr(struct kinfo_proc2 *pp)
static char *
format_comm(struct kinfo_proc2 *kp)
{
-#define ARG_SIZE 60
- static char **s, buf[ARG_SIZE];
+ static char **s, buf[MAX_COLS];
size_t siz = 100;
char **p;
int mib[4];