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:
Jan Kneschke 2006-10-04 07:00:35 +00:00
parent 56de5af1cd
commit d766ee99ce
1 changed files with 1 additions and 1 deletions

View File

@ -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