diff options
author | Valentin Bartenev <vbart@nginx.com> | 2017-08-28 10:20:40 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2017-08-28 10:20:40 +0300 |
commit | 3ab49d14c0ce300189b13a8488f9cb5b1cf513ad (patch) | |
tree | 8cea07ded508d991e0305ce76d6410fad5815fa1 | |
parent | 28efb65ac442a298e717c060e1a33dbd6ef0648f (diff) | |
download | unit-3ab49d14c0ce300189b13a8488f9cb5b1cf513ad.tar.gz unit-3ab49d14c0ce300189b13a8488f9cb5b1cf513ad.tar.bz2 |
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.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_job_file.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)) { |