← Commit list

4d7605af8

Denis Vlasenko
Denis Vlasenko
2007-09-08
FAILED Duration: 21s

Subject

top: small fix for command line wrapping

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/top.c+2 -2
@@ -474,8 +474,8 @@ static NOINLINE void display_process_list(int count, int scr_width)
, SHOW_STAT(pcpu)
#endif
);
- if (col < scr_width)
- read_cmdline(line_buf + col, scr_width - col, s->pid, s->comm);
+ if (col + 1 < scr_width)
+ read_cmdline(line_buf + col, scr_width - col - 1, s->pid, s->comm);
fputs(line_buf, stdout);
/* printf(" %d/%d %lld/%lld", s->pcpu, total_pcpu,
jif.busy - prev_jif.busy, jif.total - prev_jif.total); */