From: macrule <562520+macrule@users.noreply.github.com> Date: Wed, 29 Nov 2017 17:18:53 +0000 (+0100) Subject: webui: Fixed sendfile() call on Darwin. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=baa14f0991ad840ea6c980c1175c4efe30e5fe5e;p=thirdparty%2Ftvheadend.git webui: Fixed sendfile() call on Darwin. Order of call arguments was wrong. --- diff --git a/src/webui/webui.c b/src/webui/webui.c index 2652e0f08..bd013ecb4 100644 --- a/src/webui/webui.c +++ b/src/webui/webui.c @@ -1680,7 +1680,7 @@ http_serve_file(http_connection_t *hc, const char *fname, sendfile(fd, hc->hc_fd, 0, chunk, NULL, &r, 0); #elif defined(PLATFORM_DARWIN) r = chunk; - sendfile(fd, hc->hc_fd, 0, NULL, &r, 0); + sendfile(fd, hc->hc_fd, 0, &r, NULL, 0); #endif if(r < 0) { ret = -1;