]> git.sur5r.net Git - openldap/commitdiff
Fix void* pointer arithmetic from ber_bvchr()
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 14 Nov 2005 14:46:38 +0000 (14:46 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 14 Nov 2005 14:46:38 +0000 (14:46 +0000)
servers/slapd/overlays/valsort.c

index 02ab60417bbc1f9d9e751f9ad333f4f0f8aa933f..2ea7c44c496c50ba5b03ea1b254731fcdae8f2ee 100644 (file)
@@ -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++;