From f23c9d36b0cd4083722012e4a94df8295f29d04c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 12 Sep 2003 21:41:18 +0000 Subject: Fix from Benjamin Riefenstahl . Revered condition meant fast-path in strchr_m was not being used. Doh ! Jeremy. --- source/lib/util_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/lib/util_str.c') 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++; -- cgit