top, ps: do not output trailing spaces
No binary (build failed)
—
(log yok)
| @@ -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] = ' '; | |