diff options
-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)) { |