From: Pierangelo Masarati Date: Mon, 14 Nov 2005 15:02:14 +0000 (+0000) Subject: re-fix cast and logic X-Git-Tag: OPENLDAP_REL_ENG_2_2_MP~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2bf647fa1693e10373b58e32252686310d28df64;p=openldap re-fix cast and logic --- 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';