summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-30 00:48:43 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-30 00:48:43 +0000
commit760e6d30174964085ce2b92ecd1b5a7b7080c555 (patch)
tree8a94da34cd5eb5b3a0ececee95f658071b8fcdc3 /src/inspircd.cpp
parent49fa6bdca1d26fb7ed94c2dddb99e8591672eab4 (diff)
Optimized out some more redundant va_args voodoo
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2706 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index ed1c8fda8..730e7fea0 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -337,7 +337,7 @@ bool InspIRCd::LoadModule(const char* filename)
{
char modfile[MAXBUF];
#ifdef STATIC_LINK
- snprintf(modfile,MAXBUF,"%s",filename);
+ strlcpy(modfile,filename,MAXBUF);
#else
snprintf(modfile,MAXBUF,"%s/%s",Config->ModPath,filename);
#endif