From 3860f39b3eea7bff7e85a06365b85c0be657e051 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Thu, 15 Aug 2019 00:00:00 -0500 Subject: [PATCH] ps: increase command name length to 64 ____ (catch up) Reference(s): . orginal master branch commit, 5/19/18 commit 14005a371e5c14289e96a4927ffd1a827d3c9d85 Signed-off-by: Jim Warner --- ps/common.h | 2 +- ps/select.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ps/common.h b/ps/common.h index 31a2c566..8c61eb8e 100644 --- a/ps/common.h +++ b/ps/common.h @@ -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 { diff --git a/ps/select.c b/ps/select.c index 9b36cfd7..79a7038c 100644 --- a/ps/select.c +++ b/ps/select.c @@ -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