From: Denis Vlasenko Date: Sat, 8 Sep 2007 17:42:00 +0000 (-0000) Subject: top: small fix for command line wrapping X-Git-Tag: 1_8_0~194 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4d7605af86644861faf0f3a95b7bf36865bf2a90;p=oweals%2Fbusybox.git top: small fix for command line wrapping --- diff --git a/procps/top.c b/procps/top.c index 529db5f7b..ac3b7e5a2 100644 --- a/procps/top.c +++ b/procps/top.c @@ -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); */