fix string format output bug

This commit is contained in:
fortrue 2018-04-23 11:45:46 +08:00
parent 4b8f578a2f
commit a856f2607f

View File

@ -196,7 +196,7 @@ void Command::addCustomCommand(const CustomCommandConf& ccc) {
Throw(InitFail, "too many custom commands(>%d)", MaxCustomCommands);
}
if (nullptr != find(ccc.name)) {
Throw(InitFail, "custom command %s is duplicated", ccc.name);
Throw(InitFail, "custom command %s is duplicated", ccc.name.c_str());
}
auto* p = &CmdPool[Sentinel];
p->name = ccc.name.c_str();