pstree: tiny shrink

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2010-12-05 16:05:03 +01:00
parent e48e6f85bf
commit c32e626988

View File

@ -111,9 +111,10 @@ static void maybe_free_buffers(void)
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);
}