diff --git a/src/modules/files/sendfile.c b/src/modules/files/sendfile.c index 736907f17c3e5190968606c623fb12df0d1ef70d..953da777b73d9e1f2464f438b271cd3f44c747ce 100644 --- a/src/modules/files/sendfile.c +++ b/src/modules/files/sendfile.c @@ -1,5 +1,5 @@ /* - * $Id: sendfile.c,v 1.17 1999/05/07 14:58:13 grubba Exp $ + * $Id: sendfile.c,v 1.18 1999/05/13 07:02:35 neotron Exp $ * * Sends headers + from_fd[off..off+len-1] + trailers to to_fd asyncronously. * @@ -144,6 +144,7 @@ struct pike_sendfile char *buffer; }; +#undef THIS #define THIS ((struct pike_sendfile *)(fp->current_storage)) /* @@ -203,7 +204,7 @@ static void exit_pike_sendfile(struct object *o) static int writev(int fd, struct iovec *iov, int n) { if (n) { - return fd_write(fd, iov->iov_data, iov->iov_len); + return fd_write(fd, iov->iov_base, iov->iov_len); } return 0; }