diff options
Diffstat (limited to 'libcli/util')
-rw-r--r-- | libcli/util/tstream.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcli/util/tstream.c b/libcli/util/tstream.c index 9c42ca1f4e..5d0e561193 100644 --- a/libcli/util/tstream.c +++ b/libcli/util/tstream.c @@ -75,7 +75,7 @@ struct tevent_req *tstream_read_pdu_blob_send(TALLOC_CTX *mem_ctx, state->pdu_blob.data = buf; state->pdu_blob.length = initial_read_size; - state->tmp_vector.iov_base = buf; + state->tmp_vector.iov_base = (char *) buf; state->tmp_vector.iov_len = initial_read_size; subreq = tstream_readv_send(state, ev, stream, &state->tmp_vector, 1); @@ -128,7 +128,7 @@ static void tstream_read_pdu_blob_done(struct tevent_req *subreq) state->pdu_blob.data = buf; state->pdu_blob.length = pdu_size; - state->tmp_vector.iov_base = buf + state->tmp_vector.iov_len; + state->tmp_vector.iov_base = (char *) (buf + state->tmp_vector.iov_len); state->tmp_vector.iov_len = pdu_size - state->tmp_vector.iov_len; subreq = tstream_readv_send(state, |