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