From a856f2607faa27ba76a38b78a49b48194d5b1e7f Mon Sep 17 00:00:00 2001 From: fortrue Date: Mon, 23 Apr 2018 11:45:46 +0800 Subject: [PATCH] fix string format output bug --- src/Command.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Command.cpp b/src/Command.cpp index 60acf7a..4927a79 100644 --- a/src/Command.cpp +++ b/src/Command.cpp @@ -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();