diff options
Diffstat (limited to 'source/lib/util_str.c')
-rw-r--r-- | source/lib/util_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/util_str.c b/source/lib/util_str.c index 57131ad873b..c065bfe9db6 100644 --- a/source/lib/util_str.c +++ b/source/lib/util_str.c @@ -1186,7 +1186,7 @@ char *strchr_m(const char *s, char c) supported multi-byte character sets are ascii-compatible (ie. they match for the first 128 chars) */ - while (*s && (((unsigned char)s[0]) & 0x80)) { + while (*s && !(((unsigned char)s[0]) & 0x80)) { if (*s == c) return s; s++; |