diff --git a/src/http_chunk.c b/src/http_chunk.c index fb76a99e..07bde8b5 100644 --- a/src/http_chunk.c +++ b/src/http_chunk.c @@ -77,7 +77,7 @@ static int http_chunk_append_read_fd_range(request_st * const r, const buffer * http_chunk_len_append(cq, (uintmax_t)len); if (0 != offset && -1 == lseek(fd, offset, SEEK_SET)) return -1; - buffer * const b = chunkqueue_append_buffer_open_sz(cq, len+2); + buffer * const b = chunkqueue_append_buffer_open_sz(cq, len+2+1); ssize_t rd; offset = 0; do {