summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Warner <james.warner@comcast.net>2018-05-19 00:00:00 -0500
committerCraig Small <csmall@enc.com.au>2018-05-19 21:48:13 +1000
commitc699f2e26d805b1f9159c4086cfd6b5ea25004a4 (patch)
treedd8acbc5c0b676be41321d04d7fc71ace5f019ea
parent607edc20645a53469483c97edcd1d30975fdd408 (diff)
downloadprocps-ng-c699f2e26d805b1f9159c4086cfd6b5ea25004a4.tar.gz
top: just respond to the increased command name length
The command name for running tasks is displayed by top in a variable length field, so the increase from 16 to 64 bytes was not a problem. However, there's one place where top is sensitive to length - insp_view_choice(). So, this patch just bumps a buffer used to display it. Reference(s): . increased 'comm' length commit 2cfdbbe897f0d4e41460c7c2b92acfc5804652c8 Signed-off-by: Jim Warner <james.warner@comcast.net>
-rw-r--r--top/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/top/top.c b/top/top.c
index 1ff44e5..d890140 100644
--- a/top/top.c
+++ b/top/top.c
@@ -3368,7 +3368,7 @@ signify_that:
adj_geometry();
for (;;) {
- char pid[6], cmd[16];
+ char pid[6], cmd[64];
if (curcol < 0) curcol = 0;
if (curlin >= Insp_nl) curlin = Insp_nl -1;