summaryrefslogtreecommitdiffstats
path: root/source/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-09-12 21:41:18 +0000
committerJeremy Allison <jra@samba.org>2003-09-12 21:41:18 +0000
commitf23c9d36b0cd4083722012e4a94df8295f29d04c (patch)
tree0f67214060182a11007e71f4cb6ef7abb92ed9f4 /source/lib
parentaa40a86cbe797cba4e281cb8dc09b2ae67e93dc2 (diff)
downloadsamba-f23c9d36b0cd4083722012e4a94df8295f29d04c.tar.gz
samba-f23c9d36b0cd4083722012e4a94df8295f29d04c.tar.xz
samba-f23c9d36b0cd4083722012e4a94df8295f29d04c.zip
Fix from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>. Revered
condition meant fast-path in strchr_m was not being used. Doh ! Jeremy.
Diffstat (limited to 'source/lib')
-rw-r--r--source/lib/util_str.c2
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++;