summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/sendfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/sendfile.c b/source3/lib/sendfile.c
index 11bf38ebee..23d1154718 100644
--- a/source3/lib/sendfile.c
+++ b/source3/lib/sendfile.c
@@ -115,9 +115,9 @@ ssize_t sys_sendfile(int outfd, int infd, const DATA_BLOB *header, SMB_OFF_T off
do {
#if defined(HAVE_EXPLICIT_LARGEFILE_SUPPORT) && defined(HAVE_OFF64_T) && defined(SENDFILE64)
- nwritten = sendfile64(outfd, infd, &offset, total, &hdtrl, 0);
+ nwritten = sendfile64(outfd, infd, offset, total, &hdtrl[0], 0);
#else
- nwritten = sendfile(outfd, infd, &offset, total, &hdtrl, 0);
+ nwritten = sendfile(outfd, infd, offset, total, &hdtrl[0], 0);
#endif
} while (nwritten == -1 && errno == EINTR);
if (nwritten == -1)