Browse Source

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
svn/tags/lighttpd-1.4.13
Jan Kneschke 16 years ago
parent
commit
d766ee99ce
  1. 2
      src/connections.c

2
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

Loading…
Cancel
Save