]> arthur.barton.de Git - ngircd-alex.git/commitdiff
fix compressed server links (broken since 0.10.0)
authorFlorian Westphal <fw@strlen.de>
Wed, 2 May 2007 12:22:43 +0000 (12:22 +0000)
committerFlorian Westphal <fw@strlen.de>
Wed, 2 May 2007 12:22:43 +0000 (12:22 +0000)
ChangeLog
src/ngircd/conn.c

index ab1191cf4ef7b95c0adfa0868bd2c65c636dc624..cbd5df976b53dc5c4080b6e59983eff0bf4b7617 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,7 @@
 
 ngIRCd 0.10.2
 
+  - fix compressed server links (broken since 0.10.0)
   - Predefined Channel configuration now allows specification of channel key
     (mode k) and maximum user count (mode l).
   - When using epoll() IO interface, compile in the select() interface as
@@ -684,4 +685,4 @@ ngIRCd 0.0.1, 31.12.2001
 
 
 -- 
-$Id: ChangeLog,v 1.302.2.11 2007/04/03 22:08:50 fw Exp $
+$Id: ChangeLog,v 1.302.2.12 2007/05/02 12:22:43 fw Exp $
index 03163e5577bf7e4953693bde5cbdae7984b8dcef..eec9beb5653d93c097704044d58fe7357b180c1c 100644 (file)
@@ -17,7 +17,7 @@
 #include "portab.h"
 #include "io.h"
 
-static char UNUSED id[] = "$Id: conn.c,v 1.198.2.3 2007/04/03 22:08:52 fw Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.198.2.4 2007/05/02 12:22:44 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -1100,8 +1100,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 );
                }