diff options
Diffstat (limited to 'procps/ps.c')
-rw-r--r-- | procps/ps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/ps.c b/procps/ps.c index 4a6b60b..6523f0f 100644 --- a/procps/ps.c +++ b/procps/ps.c @@ -186,7 +186,7 @@ static void func_comm(char *buf, int size, const procps_status_t *ps) static void func_args(char *buf, int size, const procps_status_t *ps) { - read_cmdline(buf, size, ps->pid, ps->comm); + read_cmdline(buf, size+1, ps->pid, ps->comm); } static void func_pid(char *buf, int size, const procps_status_t *ps) |