diff options
author | Jeremy Allison <jra@samba.org> | 2003-09-12 21:41:18 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-09-12 21:41:18 +0000 |
commit | 76d0a7ca0800c56560bd5c0a78ce790dc8be5c18 (patch) | |
tree | 194830ab7dd87de61cb12175f6af0c2ffa168179 /source3/lib | |
parent | a4e5e3f3a5d80673a6b4ee2d9bd4f00a325bb4fb (diff) | |
download | samba-76d0a7ca0800c56560bd5c0a78ce790dc8be5c18.tar.gz samba-76d0a7ca0800c56560bd5c0a78ce790dc8be5c18.tar.bz2 samba-76d0a7ca0800c56560bd5c0a78ce790dc8be5c18.zip |
Fix from Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>. Revered
condition meant fast-path in strchr_m was not being used. Doh !
Jeremy.
(This used to be commit f23c9d36b0cd4083722012e4a94df8295f29d04c)
Diffstat (limited to 'source3/lib')
-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++; |