]> granicus.if.org Git - procps-ng/commitdiff
top: just respond to the increased command name length
authorJim Warner <james.warner@comcast.net>
Sat, 19 May 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Sat, 19 May 2018 11:48:13 +0000 (21:48 +1000)
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>
top/top.c

index 1ff44e5204d3654af9f35fbb0a96ebe98b4d135e..d890140114985c9f9261af1b45c9604809e4ef0f 100644 (file)
--- 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;