From: Hallvard Furuseth Date: Mon, 14 Nov 2005 14:46:38 +0000 (+0000) Subject: Fix void* pointer arithmetic from ber_bvchr() X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~25 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bfd221ae46bbc8ec49f7ee209585526f43eb86af;p=openldap Fix void* pointer arithmetic from ber_bvchr() --- diff --git a/servers/slapd/overlays/valsort.c b/servers/slapd/overlays/valsort.c index 02ab60417b..2ea7c44c49 100644 --- a/servers/slapd/overlays/valsort.c +++ b/servers/slapd/overlays/valsort.c @@ -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++;