X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Firc.c;h=a2d5f1e8fbfff0ab84f7dc07a0615b195c6ce977;hp=415c55fbabc823a334eeb079189745852aaf121f;hb=b316c380ad30a1c23c768544541b7cf56bf9fc0f;hpb=695631b2984111a825346396dc56635a2fe3a7c4 diff --git a/src/ngircd/irc.c b/src/ngircd/irc.c index 415c55fb..a2d5f1e8 100644 --- a/src/ngircd/irc.c +++ b/src/ngircd/irc.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: irc.c,v 1.108 2002/12/26 17:04:54 alex Exp $"; +static char UNUSED id[] = "$Id: irc.c,v 1.109 2002/12/26 17:14:48 alex Exp $"; #include "imp.h" #include @@ -73,7 +73,7 @@ IRC_KILL( CLIENT *Client, REQUEST *Req ) Log( LOG_NOTICE|LOG_snotice, "Got KILL command from \"%s\" for \"%s\": %s", Client_Mask( prefix ), Req->argv[0], Req->argv[1] ); /* build reason string */ - if( Client_Type( Client ) == CLIENT_USER ) sprintf( reason, "KILLed by %s: %s", Client_ID( Client ), Req->argv[1] ); + if( Client_Type( Client ) == CLIENT_USER ) snprintf( reason, sizeof( reason ), "KILLed by %s: %s", Client_ID( Client ), Req->argv[1] ); else strlcpy( reason, Req->argv[1], sizeof( reason )); /* andere Server benachrichtigen */