diff options
-rw-r--r-- | procps/pstree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/pstree.c b/procps/pstree.c index ea690a9c8..ed1a41289 100644 --- a/procps/pstree.c +++ b/procps/pstree.c | |||
@@ -349,7 +349,7 @@ static void dump_by_user(PROC *current, uid_t uid) | |||
349 | static void handle_thread(const char *comm, pid_t pid, pid_t ppid, uid_t uid) | 349 | static void handle_thread(const char *comm, pid_t pid, pid_t ppid, uid_t uid) |
350 | { | 350 | { |
351 | char threadname[COMM_DISP_LEN + 1]; | 351 | char threadname[COMM_DISP_LEN + 1]; |
352 | sprintf(threadname, "{%.*s}", (int)sizeof(threadname) - 1, comm); | 352 | sprintf(threadname, "{%.*s}", (int)sizeof(threadname) - 3, comm); |
353 | add_proc(threadname, pid, ppid, uid/*, 1*/); | 353 | add_proc(threadname, pid, ppid, uid/*, 1*/); |
354 | } | 354 | } |
355 | #endif | 355 | #endif |