X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fparse.c;h=fbc6ac6b16d7a38f56935ed20215762473ad268f;hp=ac24dbf985f2c5b5f215e321099ceca158e66d01;hb=b8d7dcec7739aab840fc1ccae8e4dfaa8db330a1;hpb=17f7c6d3edf26e644b98e2b11fd3b1959ac8c0e6 diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index ac24dbf9..fbc6ac6b 100644 --- a/src/ngircd/parse.c +++ b/src/ngircd/parse.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: parse.c,v 1.52 2002/12/18 13:53:20 alex Exp $"; +static char UNUSED id[] = "$Id: parse.c,v 1.55 2002/12/30 17:15:42 alex Exp $"; #include "imp.h" #include @@ -24,7 +24,7 @@ static char UNUSED id[] = "$Id: parse.c,v 1.52 2002/12/18 13:53:20 alex Exp $"; #include "ngircd.h" #include "defines.h" -#include "conn.h" +#include "conn-func.h" #include "client.h" #include "channel.h" #include "log.h" @@ -360,12 +360,12 @@ Handle_Request( CONN_ID Idx, REQUEST *Req ) } /* Statuscode weiterleiten */ - strcpy( str, Req->command ); + strlcpy( str, Req->command, sizeof( str )); for( i = 0; i < Req->argc; i++ ) { - if( i < Req->argc - 1 ) strcat( str, " " ); - else strcat( str, " :" ); - strcat( str, Req->argv[i] ); + if( i < Req->argc - 1 ) strlcat( str, " ", sizeof( str )); + else strlcat( str, " :", sizeof( str )); + strlcat( str, Req->argv[i], sizeof( str )); } return IRC_WriteStrClientPrefix( target, prefix, "%s", str ); }