← Commit list

c32e62698

Denys Vlasenko
Denys Vlasenko
2010-12-05
FAILED Duration: 262s

Subject

pstree: tiny shrink

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

procps/pstree.c+3 -2
@@ -111,10 +111,11 @@ 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);
+ putchar(c);
}
/* NB: this function is never called with "bad" chars