From 76d0a7ca0800c56560bd5c0a78ce790dc8be5c18 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. (This used to be commit f23c9d36b0cd4083722012e4a94df8295f29d04c) --- source3/lib/util_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/util_str.c') 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++; -- cgit