diff options
Diffstat (limited to 'src/common/strlib.c')
-rw-r--r-- | src/common/strlib.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/strlib.c b/src/common/strlib.c index 9cac2ca4f..977dc8306 100644 --- a/src/common/strlib.c +++ b/src/common/strlib.c @@ -114,7 +114,7 @@ int remove_control_chars(char* str) int change = 0; for(i = 0; str[i]; i++) { - if (str[i] < 32) { + if (ISCNTRL(str[i])) { str[i] = '_'; change = 1; } |