Index: usr.bin/top/machine.c =================================================================== --- usr.bin/top/machine.c +++ usr.bin/top/machine.c @@ -871,7 +871,7 @@ long p_tot, s_tot; char *cmdbuf = NULL; char **args; - const int cmdlen = 256; + const int cmdlen = screen_width; static struct sbuf* procbuf = NULL; /* clean up from last time. */ @@ -952,7 +952,6 @@ } } else { if (pp->ki_flag & P_SYSTEM || - pp->ki_args == NULL || (args = kvm_getargv(kd, pp, cmdlen)) == NULL || !(*args)) { if (ps.thread && pp->ki_flag & P_HADTHREADS && Index: usr.bin/top/top.h =================================================================== --- usr.bin/top/top.h +++ usr.bin/top/top.h @@ -14,7 +14,7 @@ extern int Header_lines; /* Maximum number of columns allowed for display */ -#define MAX_COLS 512 +#define MAX_COLS 1024 /* Special atoi routine returns either a non-negative number or one of: */ #define Infinity -1