]> git.sur5r.net Git - openldap/commitdiff
Fix prev commit
authorHoward Chu <hyc@openldap.org>
Tue, 30 Sep 2008 22:22:31 +0000 (22:22 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 30 Sep 2008 22:22:31 +0000 (22:22 +0000)
libraries/libldap/charray.c

index b679f75d835209c974b2bf0f2634eaa2c8b1cd53..b9ad8037afd38676f206adc07da79709c8d6eafd 100644 (file)
@@ -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++;
        }