summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sendfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/lib/sendfile.c b/source3/lib/sendfile.c
index bcace5fee2..df6c1980d0 100644
--- a/source3/lib/sendfile.c
+++ b/source3/lib/sendfile.c
@@ -209,7 +209,8 @@ ssize_t sys_sendfile(int tofd, int fromfd, const DATA_BLOB *header, SMB_OFF_T of
hdtrl[0].iov_len = 0;
} else {
nwritten = 0;
- hdtrl[0].iov_base += nwritten;
+ /* iov_base is defined as a void *... */
+ hdtrl[0].iov_base = ((char *)hdtrl[0].iov_base) + nwritten;
hdtrl[0].iov_len -= nwritten;
}
}