diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/lineedit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c index 6513219ce..11a77ec69 100644 --- a/libbb/lineedit.c +++ b/libbb/lineedit.c | |||
@@ -705,8 +705,12 @@ static void add_match(char *matched) | |||
705 | while (*p) { | 705 | while (*p) { |
706 | /* ESC attack fix: drop any string with control chars */ | 706 | /* ESC attack fix: drop any string with control chars */ |
707 | if (*p < ' ' | 707 | if (*p < ' ' |
708 | # if !ENABLE_PLATFORM_MINGW32 | ||
708 | || (!ENABLE_UNICODE_SUPPORT && *p >= 0x7f) | 709 | || (!ENABLE_UNICODE_SUPPORT && *p >= 0x7f) |
709 | || (ENABLE_UNICODE_SUPPORT && *p == 0x7f) | 710 | || (ENABLE_UNICODE_SUPPORT && *p == 0x7f) |
711 | # else | ||
712 | || *p == 0x7f | ||
713 | # endif | ||
710 | ) { | 714 | ) { |
711 | free(matched); | 715 | free(matched); |
712 | return; | 716 | return; |