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=3be66a9e8859a9a69cdd541f86ffce626c88b1dc;hb=b8d7dcec7739aab840fc1ccae8e4dfaa8db330a1;hpb=6626395c88fc46eeb110942b17eb9245a1d0021b diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index 3be66a9e..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.53 2002/12/26 16:48:14 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.53 2002/12/26 16:48:14 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,7 +360,7 @@ 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 ) strlcat( str, " ", sizeof( str ));