From: Igor Sysoev Date: Wed, 6 Jun 2007 05:56:51 +0000 (+0000) Subject: fix bug introduced in r1228 X-Git-Tag: release-0.5.24~1 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=52a93439bc737ef6ad7ac99b329ebdbcca6d31c3;p=nginx.git fix bug introduced in r1228 --- diff --git a/src/core/ngx_output_chain.c b/src/core/ngx_output_chain.c index 6bb463a83..5e6773e60 100644 --- a/src/core/ngx_output_chain.c +++ b/src/core/ngx_output_chain.c @@ -418,7 +418,7 @@ ngx_output_chain_copy_buf(ngx_buf_t *dst, ngx_buf_t *src, ngx_uint_t sendfile) src->file_pos += n; - if (src->pos == src->last) { + if (src->file_pos == src->file_last) { dst->flush = src->flush; dst->last_buf = src->last_buf; }