diff options
author | 2024-11-28 17:32:50 +0100 | |
---|---|---|
committer | 2024-11-28 17:32:50 +0100 | |
commit | fee0ca03bfcbb93abbd7ea563e6bf5c203e3ac61 (patch) | |
tree | 0aa106e61201b76fcc47694ea942a310481e44f4 | |
parent | 9bdf7fe983311e8c573d7c466c2006059645c4ba (diff) | |
download | libimobiledevice-glue-fee0ca03bfcbb93abbd7ea563e6bf5c203e3ac61.tar.gz libimobiledevice-glue-fee0ca03bfcbb93abbd7ea563e6bf5c203e3ac61.tar.bz2 |
Fix unrecognized \e escape sequence
-rw-r--r-- | src/termcolors.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/termcolors.c b/src/termcolors.c index 6199bed..0d35c77 100644 --- a/src/termcolors.c +++ b/src/termcolors.c @@ -182,7 +182,7 @@ int cvfprintf(FILE* stream, const char* fmt, va_list vargs) char* end = start + len + 1; while (p < end-1) { char* cur = p; - if (*p == '\e' && end-p > 2 && *(p+1) == '[') { + if (*p == '\x1b' && end-p > 2 && *(p+1) == '[') { p+=2; if (*p == 'm') { #ifdef _WIN32 |