From bfd221ae46bbc8ec49f7ee209585526f43eb86af Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Mon, 14 Nov 2005 14:46:38 +0000 Subject: [PATCH] Fix void* pointer arithmetic from ber_bvchr() --- servers/slapd/overlays/valsort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++; -- 2.39.5