#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 <assert.h>
#include "ngircd.h"
#include "defines.h"
-#include "conn.h"
+#include "conn-func.h"
#include "client.h"
#include "channel.h"
#include "log.h"
}
/* 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 );
}