svn commit: trunk/busybox/procps
vda at busybox.net
vda at busybox.net
Sat Sep 8 10:42:00 PDT 2007
Author: vda
Date: 2007-09-08 10:42:00 -0700 (Sat, 08 Sep 2007)
New Revision: 19805
Log:
top: small fix for command line wrapping
Modified:
trunk/busybox/procps/top.c
Changeset:
Modified: trunk/busybox/procps/top.c
===================================================================
--- trunk/busybox/procps/top.c 2007-09-08 17:34:05 UTC (rev 19804)
+++ trunk/busybox/procps/top.c 2007-09-08 17:42:00 UTC (rev 19805)
@@ -474,8 +474,8 @@
, 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); */
More information about the busybox-cvs
mailing list