mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
re-fix cast and logic
This commit is contained in:
parent
bfd221ae46
commit
2bf647fa16
@ -339,8 +339,9 @@ valsort_response( Operation *op, SlapReply *rs )
|
||||
|
||||
if ( a->a_vals != a->a_nvals ) {
|
||||
ptr = a->a_vals[i].bv_val;
|
||||
end = (char *) ber_bvchr( &a->a_vals[i], '}' ) + 1;
|
||||
end = ber_bvchr( &a->a_vals[i], '}' );
|
||||
assert( end != NULL );
|
||||
end++;
|
||||
for (;*end;)
|
||||
*ptr++ = *end++;
|
||||
*ptr = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user