]> granicus.if.org Git - procps-ng/commitdiff
0x9b
authoralbert <>
Sat, 14 Dec 2002 04:23:30 +0000 (04:23 +0000)
committeralbert <>
Sat, 14 Dec 2002 04:23:30 +0000 (04:23 +0000)
top.c

diff --git a/top.c b/top.c
index f455bac6c9aed7bef355dd6c8bdf96271755da9a..866a66a9e6d25dfd00c459ef8fa87ef457ca7e45 100644 (file)
--- 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\133";  // 0133 is an escape
+   static const char ws[] = "\b\e\f\n\r\t\v\x9b";  // 0x9b 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\133";  // 0133 is an escape
+   static const char ws[] = "\b\e\f\n\r\t\v\x9b";  // 0x9b is an escape
    char *p;
 
    while (unlikely(p = strpbrk(str, ws))) *p = ' ';