From d766ee99ce4d28d0d13f812c8932ada3c264b0ea Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Wed, 4 Oct 2006 07:00:35 +0000 Subject: [PATCH] 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 --- src/connections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/connections.c b/src/connections.c index 3f3a02e1..b3a46056 100644 --- a/src/connections.c +++ b/src/connections.c @@ -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