From 3ab49d14c0ce300189b13a8488f9cb5b1cf513ad Mon Sep 17 00:00:00 2001 From: Valentin Bartenev Date: Mon, 28 Aug 2017 10:20:40 +0300 Subject: Fixed nxt_job_file_read_data(). Obviously it should read data into the free region of buffer. The "free" pointer is respectively shifted in the code below. --- src/nxt_job_file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nxt_job_file.c b/src/nxt_job_file.c index eab13367..675bed2f 100644 --- a/src/nxt_job_file.c +++ b/src/nxt_job_file.c @@ -277,7 +277,7 @@ nxt_job_file_read_data(nxt_job_file_t *jbf, size_t size) { ssize_t n; - n = nxt_file_read(&jbf->file, jbf->buffer->mem.pos, size, jbf->offset); + n = nxt_file_read(&jbf->file, jbf->buffer->mem.free, size, jbf->offset); if (nxt_fast_path(n > 0)) { -- cgit