X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fchannel.c;h=0b2b1ff18afe97c528f981c14bd0deefa68ae3f5;hb=9d82635b15acdf26784829674b97d454b741f447;hp=c50398940a3c2c827267cc4abf8c42dc2d000631;hpb=0ced4181b032249a5ccab2a6ae1d61bf08f60293;p=ngircd-alex.git diff --git a/src/ngircd/channel.c b/src/ngircd/channel.c index c5039894..0b2b1ff1 100644 --- a/src/ngircd/channel.c +++ b/src/ngircd/channel.c @@ -17,14 +17,14 @@ #include "portab.h" -static char UNUSED id[] = "$Id: channel.c,v 1.40 2002/12/26 16:25:43 alex Exp $"; +static char UNUSED id[] = "$Id: channel.c,v 1.42 2002/12/30 17:15:42 alex Exp $"; #include "imp.h" #include #include #include -#include "conn.h" +#include "conn-func.h" #include "client.h" #include "exp.h" @@ -494,7 +494,7 @@ Channel_ModeAdd( CHANNEL *Chan, CHAR Mode ) if( ! strchr( Chan->modes, x[0] )) { /* Client hat den Mode noch nicht -> setzen */ - strcat( Chan->modes, x ); + strlcat( Chan->modes, x, sizeof( Chan->modes )); return TRUE; } else return FALSE; @@ -547,7 +547,7 @@ Channel_UserModeAdd( CHANNEL *Chan, CLIENT *Client, CHAR Mode ) if( ! strchr( cl2chan->modes, x[0] )) { /* Client hat den Mode noch nicht -> setzen */ - strcat( cl2chan->modes, x ); + strlcat( cl2chan->modes, x, sizeof( cl2chan->modes )); return TRUE; } else return FALSE;