pstree: tiny shrink
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
e48e6f85bf
commit
c32e626988
@ -111,10 +111,11 @@ static void maybe_free_buffers(void)
|
|||||||
static void out_char(char c)
|
static void out_char(char c)
|
||||||
{
|
{
|
||||||
G.cur_x++;
|
G.cur_x++;
|
||||||
|
if (G.cur_x > G.output_width)
|
||||||
|
return;
|
||||||
if (G.cur_x == G.output_width)
|
if (G.cur_x == G.output_width)
|
||||||
c = '+';
|
c = '+';
|
||||||
if (G.cur_x <= G.output_width)
|
putchar(c);
|
||||||
putchar(c);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* NB: this function is never called with "bad" chars
|
/* NB: this function is never called with "bad" chars
|
||||||
|
Loading…
Reference in New Issue
Block a user