aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/usage.h2
-rw-r--r--libbb/procps.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/usage.h b/include/usage.h
index 907eb78f4..6f9d155c3 100644
--- a/include/usage.h
+++ b/include/usage.h
@@ -1338,7 +1338,7 @@
1338#define ftpd_trivial_usage \ 1338#define ftpd_trivial_usage \
1339 "[-wvS] [-t N] [-T N] [DIR]" 1339 "[-wvS] [-t N] [-T N] [DIR]"
1340#define ftpd_full_usage "\n\n" \ 1340#define ftpd_full_usage "\n\n" \
1341 "FTP server\n" \ 1341 "Anonymous FTP server\n" \
1342 "\n" \ 1342 "\n" \
1343 "ftpd should be used as an inetd service.\n" \ 1343 "ftpd should be used as an inetd service.\n" \
1344 "ftpd's line for inetd.conf:\n" \ 1344 "ftpd's line for inetd.conf:\n" \
diff --git a/libbb/procps.c b/libbb/procps.c
index 307d8d622..9a8e42df7 100644
--- a/libbb/procps.c
+++ b/libbb/procps.c
@@ -471,6 +471,8 @@ void FAST_FUNC read_cmdline(char *buf, int col, unsigned pid, const char *comm)
471 sz = open_read_close(filename, buf, col); 471 sz = open_read_close(filename, buf, col);
472 if (sz > 0) { 472 if (sz > 0) {
473 buf[sz] = '\0'; 473 buf[sz] = '\0';
474 while (--sz >= 0 && buf[sz] == '\0')
475 continue;
474 while (--sz >= 0) 476 while (--sz >= 0)
475 if ((unsigned char)(buf[sz]) < ' ') 477 if ((unsigned char)(buf[sz]) < ' ')
476 buf[sz] = ' '; 478 buf[sz] = ' ';