]> granicus.if.org Git - procps-ng/commitdiff
top: just respond to the increased command name length
authorJim Warner <james.warner@comcast.net>
Sat, 2 Jun 2018 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Sat, 9 Jun 2018 11:35:20 +0000 (21:35 +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):
. master branch increase to 64
commit 2cfdbbe897f0d4e41460c7c2b92acfc5804652c8

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c

index 7e44e5433cbaddcbf5239fc0b12f78e02595bcfa..808c52a5f152e7ed32bde6860acb66eaf4c03a6e 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -2890,7 +2890,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;