From b8f0cfc091e9d190c1e152a716393f39a0f4b0ad Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 19 Feb 2003 23:31:02 +0200 Subject: [PATCH] sendfile bugfix --HG-- branch : HEAD --- src/lib/ostream-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ostream-file.c b/src/lib/ostream-file.c index 08f322dd60..4fb00b178c 100644 --- a/src/lib/ostream-file.c +++ b/src/lib/ostream-file.c @@ -570,7 +570,7 @@ static off_t io_stream_sendfile(struct _ostream *outstream, outstream->ostream.offset += ret; } while ((uoff_t)ret != send_size); - i_stream_seek(instream, instream->start_offset + v_offset); + i_stream_seek(instream, v_offset); return ret < 0 ? -1 : (off_t)(instream->v_offset - start_offset); } -- 2.47.3