diff options
Diffstat (limited to 'procps/pstree.c')
-rw-r--r-- | procps/pstree.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/procps/pstree.c b/procps/pstree.c index 25fb65d79..7e127739c 100644 --- a/procps/pstree.c +++ b/procps/pstree.c | |||
@@ -111,10 +111,11 @@ static void maybe_free_buffers(void) | |||
111 | static void out_char(char c) | 111 | static void out_char(char c) |
112 | { | 112 | { |
113 | G.cur_x++; | 113 | G.cur_x++; |
114 | if (G.cur_x > G.output_width) | ||
115 | return; | ||
114 | if (G.cur_x == G.output_width) | 116 | if (G.cur_x == G.output_width) |
115 | c = '+'; | 117 | c = '+'; |
116 | if (G.cur_x <= G.output_width) | 118 | putchar(c); |
117 | putchar(c); | ||
118 | } | 119 | } |
119 | 120 | ||
120 | /* NB: this function is never called with "bad" chars | 121 | /* NB: this function is never called with "bad" chars |