From: Quanah Gibson-Mount Date: Tue, 30 Sep 2008 22:24:49 +0000 (+0000) Subject: More for ITS#5720 X-Git-Tag: OPENLDAP_REL_ENG_2_4_12~16 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=76a91e7f826fc77ed7dd4e99ff8b933c8a8770c3;p=openldap More for ITS#5720 --- diff --git a/libraries/libldap/charray.c b/libraries/libldap/charray.c index b679f75d83..b9ad8037af 100644 --- a/libraries/libldap/charray.c +++ b/libraries/libldap/charray.c @@ -191,8 +191,8 @@ ldap_str2charray( const char *str_in, const char *brkstr ) } i = 1; - for ( s = str; *s; LDAP_UTF8_INCR(s) ) { - s = ldap_utf8_strchr( s, brkstr ); + for ( s = str; ; LDAP_UTF8_INCR(s) ) { + s = ldap_utf8_strpbrk( s, brkstr ); if ( !s ) break; i++; }