1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

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 f23c9d36b0)
This commit is contained in:
Jeremy Allison 2003-09-12 21:41:18 +00:00
parent a4e5e3f3a5
commit 76d0a7ca08

View File

@ -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++;