]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/parse.c
- Adjusted includes for new "conn-func.h" header.
[ngircd-alex.git] / src / ngircd / parse.c
index ac24dbf985f2c5b5f215e321099ceca158e66d01..fbc6ac6b16d7a38f56935ed20215762473ad268f 100644 (file)
@@ -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 <assert.h>
@@ -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 );
        }