re-fix cast and logic

This commit is contained in:
Pierangelo Masarati 2005-11-14 15:02:14 +00:00
parent bfd221ae46
commit 2bf647fa16

View File

@ -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';