pstree: fix theoretically unsafe code
authorDenys Vlasenko <vda.linux@googlemail.com>
Thu, 27 Jun 2013 23:59:25 +0000 (01:59 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 27 Jun 2013 23:59:25 +0000 (01:59 +0200)
commit173aa78bcf68c2a036823bdee803b35820ddcd44
treefe41b2b07189628aeeb29bbdef6b6e6aef090d17
parent26a7e2ecbf76db06cf0754a0664eaa68e3cae53a
pstree: fix theoretically unsafe code

In practice, p->comm is never long enough to trigger the bug, but still.

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/pstree.c