]> granicus.if.org Git - procps-ng/commitdiff
ps: increase command name length to 64 ____ (catch up)
authorJim Warner <james.warner@comcast.net>
Thu, 15 Aug 2019 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Sat, 21 Sep 2019 21:32:03 +0000 (07:32 +1000)
Reference(s):
. orginal master branch commit, 5/19/18
commit 14005a371e5c14289e96a4927ffd1a827d3c9d85

Signed-off-by: Jim Warner <james.warner@comcast.net>
ps/common.h
ps/select.c

index 31a2c566cb968f6ee62f56f2df12990459f6671f..8c61eb8e92be9b9c2c0548b1b6c2e6b659a5e935 100644 (file)
@@ -326,7 +326,7 @@ typedef union sel_union {
   uid_t uid;
   gid_t gid;
   dev_t tty;
-  char  cmd[16];  /* this is _not_ \0 terminated */
+  char  cmd[64];  /* this is _not_ \0 terminated */
 } sel_union;
 
 typedef struct selection_node {
index 9b36cfd73ee4ffcfab9f28e5db100247ae94a3d7..79a7038c6a2597124c13ad068ca0c7c055b18531 100644 (file)
@@ -114,7 +114,7 @@ static int proc_was_listed(proc_t *buf){
     break; case SEL_SESS: return_if_match(rSv(ID_SESSION, s_int, buf),pid);
 
     break; case SEL_COMM: i=sn->n; while(i--)
-    if(!strncmp( rSv(CMD, str, buf), (*(sn->u+i)).cmd, 15 )) return 1;
+    if(!strncmp( rSv(CMD, str, buf), (*(sn->u+i)).cmd, 63 )) return 1;
 
 #undef return_if_match