From: albert <> Date: Sat, 14 Dec 2002 00:52:04 +0000 (+0000) Subject: stop trashing every "3" in a command name X-Git-Tag: v3.3.0~292 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c84a872bff1f9ab28f4a298be5039eed3090780e;p=procps-ng stop trashing every "3" in a command name --- diff --git a/NEWS b/NEWS index dad76a04..ccf70a76 100644 --- a/NEWS +++ b/NEWS @@ -1,5 +1,6 @@ procps-3.1.2 --> procps-3.1.3 +uses /proc/*/wchan files when available top: user selection sysctl: add -e for Red Hat 8.0 boot scripts sysctl: the obvious --help, -V, and --version diff --git a/top.c b/top.c index df939819..f455bac6 100644 --- a/top.c +++ b/top.c @@ -287,7 +287,7 @@ static inline char *scat (char *restrict dst, const char *restrict src) * in some proc cmdlines, a choice was offered twix space or null. */ static char *strim_0 (char *str) { - static const char ws[] = "\b\e\f\n\r\t\v\0133"; // \0133 is an escape + static const char ws[] = "\b\e\f\n\r\t\v\133"; // 0133 is an escape char *p; if ((p = strpbrk(str, ws))) *p = 0; @@ -301,7 +301,7 @@ static char *strim_0 (char *str) * in some proc cmdlines, a choice was offered twix space or null. */ static char *strim_1 (char *str) { - static const char ws[] = "\b\e\f\n\r\t\v\0133"; // \0133 is an escape + static const char ws[] = "\b\e\f\n\r\t\v\133"; // 0133 is an escape char *p; while (unlikely(p = strpbrk(str, ws))) *p = ' ';