diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/lib/sendfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/lib/sendfile.c b/source/lib/sendfile.c index 11bf38ebeed..23d1154718c 100644 --- a/source/lib/sendfile.c +++ b/source/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) |