diff options
-rw-r--r-- | source3/lib/util_str.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index 57131ad873..c065bfe9db 100644 --- a/source3/lib/util_str.c +++ b/source3/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++; |