Skip to content
Snippets Groups Projects
Commit bfd221ae authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

Fix void* pointer arithmetic from ber_bvchr()

parent 82c73ef5
No related branches found
No related tags found
No related merge requests found
......@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment