X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fconn.c;h=43625fe0d22c85ccb76f8226fdcc2cf7cad9629e;hp=8e35e662cbc5697ba48cfe71240b688262e6b30d;hb=6626395c88fc46eeb110942b17eb9245a1d0021b;hpb=0ced4181b032249a5ccab2a6ae1d61bf08f60293 diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c index 8e35e662..43625fe0 100644 --- a/src/ngircd/conn.c +++ b/src/ngircd/conn.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: conn.c,v 1.107 2002/12/19 04:35:26 alex Exp $"; +static char UNUSED id[] = "$Id: conn.c,v 1.108 2002/12/26 16:48:14 alex Exp $"; #include "imp.h" #include @@ -495,7 +495,7 @@ va_dcl if( NGIRCd_Sniffer ) Log( LOG_DEBUG, " -> connection %d: '%s'.", Idx, buffer ); #endif - strcat( buffer, "\r\n" ); + strlcat( buffer, "\r\n", sizeof( buffer )); ok = Conn_Write( Idx, buffer, strlen( buffer )); My_Connections[Idx].msg_out++;