From 7895eb3b2a5c21416818eadb61d8f5975245649f Mon Sep 17 00:00:00 2001 From: leitner Date: Mon, 5 Feb 2001 20:06:20 +0000 Subject: [PATCH] fixed sendfile --- socket/socket_sendfile.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/socket/socket_sendfile.c b/socket/socket_sendfile.c index 8a674de..e94be79 100644 --- a/socket/socket_sendfile.c +++ b/socket/socket_sendfile.c @@ -15,7 +15,8 @@ _syscall4(int,sendfile,int,out,int,in,long *,offset,unsigned long,count) #endif int socket_sendfile(int out,int in,uint32 offset,uint32 bytes) { - return sendfile(out,in,&offset,bytes); + off_t tmp=offset; + return sendfile(out,in,&tmp,bytes); } #else