From 99186a90e0e9ec1a890b3616e413237a74f3871e Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Tue, 30 Sep 2008 22:22:31 +0000 Subject: [PATCH] Fix prev commit --- libraries/libldap/charray.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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++; } -- 2.39.5