]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapcompare.c
Fix assignment of <char/int>* to unsigned <char/int>* and vice versa.
[openldap] / clients / tools / ldapcompare.c
index b797c5fbace9804579d8893fb17e51debd654f6b..da957436a5e0fc603f8957b2e6a2b693dda76b35 100644 (file)
@@ -150,7 +150,7 @@ main( int argc, char **argv )
                /* it's base64 encoded. */
                bvalue.bv_val = malloc( strlen( &sep[1] ));
                bvalue.bv_len = lutil_b64_pton( &sep[1],
-                       bvalue.bv_val, strlen( &sep[1] ));
+                       (unsigned char *) bvalue.bv_val, strlen( &sep[1] ));
 
                if (bvalue.bv_len == (ber_len_t)-1) {
                        fprintf(stderr, _("base64 decode error\n"));