From 24dfb05a8681591aaeaf852214c6c268bb40ed3e Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 25 Sep 2006 21:58:32 +0000 Subject: Mini security audit git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5333 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/command_parse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/command_parse.cpp') diff --git a/src/command_parse.cpp b/src/command_parse.cpp index 881e1abc7..8722a2145 100644 --- a/src/command_parse.cpp +++ b/src/command_parse.cpp @@ -518,7 +518,7 @@ bool CommandParser::ReloadCommand(const char* cmd) dlclose(command->second); RFCCommands.erase(command); - sprintf(filename, "cmd_%s.so", commandname); + snprintf(filename, MAXBUF, "cmd_%s.so", commandname); this->LoadCommand(filename); return true; -- cgit v1.3.1-10-gc9f91