mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-24 07:43:16 -05:00
ITS#5720 fix ldap_utf8_strchr arguments
This commit is contained in:
parent
7a5b406cf1
commit
721264db13
1 changed files with 4 additions and 4 deletions
|
|
@ -191,10 +191,10 @@ ldap_str2charray( const char *str_in, const char *brkstr )
|
|||
}
|
||||
|
||||
i = 1;
|
||||
for ( s = str; *s; s++ ) {
|
||||
if ( ldap_utf8_strchr( brkstr, s ) != NULL ) {
|
||||
i++;
|
||||
}
|
||||
for ( s = str; *s; LDAP_UTF8_INCR(s) ) {
|
||||
s = ldap_utf8_strchr( s, brkstr );
|
||||
if ( !s ) break;
|
||||
i++;
|
||||
}
|
||||
|
||||
res = (char **) LDAP_MALLOC( (i + 1) * sizeof(char *) );
|
||||
|
|
|
|||
Loading…
Reference in a new issue