mirror of
https://github.com/joyieldInc/predixy.git
synced 2025-12-24 22:46:41 +08:00
fix string format output bug
This commit is contained in:
parent
4b8f578a2f
commit
a856f2607f
@ -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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user