]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/command_parse.cpp
Was checking 'channel', not 'dest'.
[user/henk/code/inspircd.git] / src / command_parse.cpp
index 881e1abc7740a668a57dffdf945adfc026d9b009..8722a2145599c9419f0d1ae16b86f0bf9443f218 100644 (file)
@@ -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;