From 760e6d30174964085ce2b92ecd1b5a7b7080c555 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 30 Dec 2005 00:48:43 +0000 Subject: Optimized out some more redundant va_args voodoo git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2706 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/inspircd.cpp') 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 -- cgit v1.2.3