0x9b
This commit is contained in:
parent
c84a872bff
commit
ece1185277
4
top.c
4
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. */
|
* in some proc cmdlines, a choice was offered twix space or null. */
|
||||||
static char *strim_0 (char *str)
|
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;
|
char *p;
|
||||||
|
|
||||||
if ((p = strpbrk(str, ws))) *p = 0;
|
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. */
|
* in some proc cmdlines, a choice was offered twix space or null. */
|
||||||
static char *strim_1 (char *str)
|
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;
|
char *p;
|
||||||
|
|
||||||
while (unlikely(p = strpbrk(str, ws))) *p = ' ';
|
while (unlikely(p = strpbrk(str, ws))) *p = ' ';
|
||||||
|
Loading…
Reference in New Issue
Block a user