commit | c32e626988ab35ba62bbe5b64dc8b86cd9a76bac | [log] [tgz] |
---|---|---|
author | Denys Vlasenko <vda.linux@googlemail.com> | Sun Dec 05 16:05:03 2010 +0100 |
committer | Denys Vlasenko <vda.linux@googlemail.com> | Sun Dec 05 16:05:03 2010 +0100 |
tree | 89962617f9663cf546967f1612d916392685fa9a | |
parent | e48e6f85bf1966cb3a6350f5c2276ca73251a2f6 [diff] [blame] |
pstree: tiny shrink Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/procps/pstree.c b/procps/pstree.c index 25fb65d..7e12773 100644 --- a/procps/pstree.c +++ b/procps/pstree.c
@@ -111,10 +111,11 @@ static void out_char(char c) { G.cur_x++; + if (G.cur_x > G.output_width) + return; if (G.cur_x == G.output_width) c = '+'; - if (G.cur_x <= G.output_width) - putchar(c); + putchar(c); } /* NB: this function is never called with "bad" chars