allocate a byte more, to match the ioctl() report
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1365 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
56de5af1cd
commit
d766ee99ce
|
@ -324,7 +324,7 @@ static int connection_handle_read(server *srv, connection *con) {
|
|||
return -1;
|
||||
}
|
||||
b = chunkqueue_get_append_buffer(con->read_queue);
|
||||
buffer_prepare_copy(b, toread);
|
||||
buffer_prepare_copy(b, toread + 1);
|
||||
|
||||
len = read(con->fd, b->ptr, b->size - 1);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue