summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRobert James Kaes <rjkaes@users.sourceforge.net>2001-10-18 21:45:54 +0000
committerRobert James Kaes <rjkaes@users.sourceforge.net>2001-10-18 21:45:54 +0000
commit26587ef1e74dcd1cfb12851d2b97eb76fb55f58b (patch)
treece789a6365a2dff0258deaff7b2b027744cde9c6 /src
parentac111ee8c6fc454e9a51dfe9357e1c67603756b7 (diff)
Fixed a problem where a full buffer on the read side would cause the
connection to be closed.
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 11c320e..30603a5 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1,4 +1,4 @@
-/* $Id: buffer.c,v 1.11 2001-09-15 21:24:18 rjkaes Exp $
+/* $Id: buffer.c,v 1.12 2001-10-18 21:45:54 rjkaes Exp $
*
* The buffer used in each connection is a linked list of lines. As the lines
* are read in and written out the buffer expands and contracts. Basically,
@@ -198,7 +198,7 @@ ssize_t readbuff(int fd, struct buffer_s *buffptr)
if (!buffer)
return 0;
- bytesin = read(fd, buffer, MAXBUFFSIZE - buffer_size(buffptr) - 1);
+ bytesin = read(fd, buffer, MAXBUFFSIZE - buffer_size(buffptr));
if (bytesin > 0) {
newbuffer = saferealloc(buffer, bytesin);