diff --git a/src/include/switch_utils.h b/src/include/switch_utils.h index a025182471..966f4e5a47 100644 --- a/src/include/switch_utils.h +++ b/src/include/switch_utils.h @@ -355,7 +355,7 @@ static inline char *switch_clean_string(char *s) char *p; for (p = s; p && *p; p++) { uint8_t x = (uint8_t) *p; - if ((x < 32 || x > 255) && x != '\n' && x != '\r') { + if ((x < 32) && x != '\n' && x != '\r') { *p = ' '; } }