Fix void* pointer arithmetic from ber_bvchr()

This commit is contained in:
Hallvard Furuseth 2005-11-14 14:46:38 +00:00
parent 82c73ef51a
commit bfd221ae46

View File

@ -339,7 +339,7 @@ valsort_response( Operation *op, SlapReply *rs )
if ( a->a_vals != a->a_nvals ) {
ptr = a->a_vals[i].bv_val;
end = ber_bvchr( &a->a_vals[i], '}' ) + 1;
end = (char *) ber_bvchr( &a->a_vals[i], '}' ) + 1;
assert( end != NULL );
for (;*end;)
*ptr++ = *end++;