From 2bf647fa1693e10373b58e32252686310d28df64 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Mon, 14 Nov 2005 15:02:14 +0000 Subject: [PATCH] re-fix cast and logic --- servers/slapd/overlays/valsort.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/servers/slapd/overlays/valsort.c b/servers/slapd/overlays/valsort.c index 2ea7c44c49..1fe209b3c7 100644 --- a/servers/slapd/overlays/valsort.c +++ b/servers/slapd/overlays/valsort.c @@ -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'; -- 2.39.5