diff options
author | Ron Yorston <rmy@pobox.com> | 2019-05-27 11:56:52 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2019-05-27 11:56:52 +0100 |
commit | a61949401890cbb33a9d6c4571b51c53460ad438 (patch) | |
tree | 64dedaddb89896d5b1670a421af123670ca2120b /procps/ps.c | |
parent | 03a7b173605a890e1db5177ecd5b8dd591081c41 (diff) | |
parent | bcb1fc3e6ca6fe902610f507eaf9b0b58a5c583a (diff) | |
download | busybox-w32-a61949401890cbb33a9d6c4571b51c53460ad438.tar.gz busybox-w32-a61949401890cbb33a9d6c4571b51c53460ad438.tar.bz2 busybox-w32-a61949401890cbb33a9d6c4571b51c53460ad438.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'procps/ps.c')
-rw-r--r-- | procps/ps.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/ps.c b/procps/ps.c index c08d03146..a4de11379 100644 --- a/procps/ps.c +++ b/procps/ps.c | |||
@@ -542,7 +542,7 @@ static void format_process(const procps_status_t *ps) | |||
542 | len = out[i].width - len + 1; | 542 | len = out[i].width - len + 1; |
543 | if (++i == out_cnt) /* do not pad last field */ | 543 | if (++i == out_cnt) /* do not pad last field */ |
544 | break; | 544 | break; |
545 | p += sprintf(p, "%*s", len, ""); | 545 | p += sprintf(p, "%*s", len, " "); /* " ", not "", to ensure separation of fields */ |
546 | } | 546 | } |
547 | printf("%.*s\n", terminal_width, buffer); | 547 | printf("%.*s\n", terminal_width, buffer); |
548 | } | 548 | } |