mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-24 12:19:49 +00:00
top, ps: do not output trailing spaces
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
0052882200
commit
ae357bd713
@ -1338,7 +1338,7 @@
|
||||
#define ftpd_trivial_usage \
|
||||
"[-wvS] [-t N] [-T N] [DIR]"
|
||||
#define ftpd_full_usage "\n\n" \
|
||||
"FTP server\n" \
|
||||
"Anonymous FTP server\n" \
|
||||
"\n" \
|
||||
"ftpd should be used as an inetd service.\n" \
|
||||
"ftpd's line for inetd.conf:\n" \
|
||||
|
@ -471,6 +471,8 @@ void FAST_FUNC read_cmdline(char *buf, int col, unsigned pid, const char *comm)
|
||||
sz = open_read_close(filename, buf, col);
|
||||
if (sz > 0) {
|
||||
buf[sz] = '\0';
|
||||
while (--sz >= 0 && buf[sz] == '\0')
|
||||
continue;
|
||||
while (--sz >= 0)
|
||||
if ((unsigned char)(buf[sz]) < ' ')
|
||||
buf[sz] = ' ';
|
||||
|
Loading…
Reference in New Issue
Block a user