about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2007-05-02 12:34:30 +0000
committerFlorian Westphal <fw@strlen.de>2007-05-02 12:34:30 +0000
commit508b55126f8f342dcc1a7e083837b32bc7e7939c (patch)
tree51090ae5d4b93f1ee4123520be247c51c3cc75a4 /src
parent9f659799796fa99fddfbfa989c42a58fe6b64555 (diff)
downloadngircd-508b55126f8f342dcc1a7e083837b32bc7e7939c.tar.gz
ngircd-508b55126f8f342dcc1a7e083837b32bc7e7939c.zip
fix compressed server links
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conn.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index 945af1b3..54f09a5c 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -17,7 +17,7 @@
 #include "portab.h"
 #include "io.h"
 
-static char UNUSED id[] = "$Id: conn.c,v 1.204 2007/04/04 21:52:12 fw Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.205 2007/05/02 12:34:31 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -1099,8 +1099,7 @@ Read_Request( CONN_ID Idx )
 	} else
 #endif
 	{
-		readbuf[len] = 0;
-		if (!array_cats( &My_Connections[Idx].rbuf, readbuf )) {
+		if (!array_catb( &My_Connections[Idx].rbuf, readbuf, len)) {
 			Log( LOG_ERR, "Could not append recieved data to input buffer (connn %d): %d bytes!", Idx, len );
 			Conn_Close( Idx, "Receive buffer overflow!", NULL, false );
 		}