diff --git a/libraries/libldap/os-local.c b/libraries/libldap/os-local.c index aef423150e..c8a871d7b1 100644 --- a/libraries/libldap/os-local.c +++ b/libraries/libldap/os-local.c @@ -176,7 +176,7 @@ sendcred: int fds[2]; if (pipe(fds) == 0) { /* Abandon, noop, has no reply */ - struct iovec iov = {abandonPDU, sizeof(abandonPDU)}; + struct iovec iov = {(char *)abandonPDU, sizeof(abandonPDU)}; struct msghdr msg = {0}; msg.msg_iov = &iov; msg.msg_iovlen = 1;