pstree: stop truncating thread names
authorMike Frysinger <vapier@gentoo.org>
Wed, 19 Jun 2013 15:29:57 +0000 (11:29 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 19 Jun 2013 15:29:57 +0000 (11:29 -0400)
commitfea25880212dd934c7e17fce8a299f9184933f6b
tree3918cd01e1773ab7a187c06a25ebe7ac2d6e8f24
parent5a7e3376b7011d3f8f2591d9dead4fc580619096
pstree: stop truncating thread names

This also fixes a minor buffer overflow when displaying threads as
add_proc() only expects COMM_LEN bytes, but we give it one more than
that.

Reported-by: Dag Wieers <dag@wieers.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
procps/pstree.c