mirror of
https://github.com/g4klx/MMDVMHost.git
synced 2026-04-21 06:13:49 +00:00
Fix format string vulnerability in remote command logging
This commit is contained in:
parent
a2309124c7
commit
fa4c54a259
1 changed files with 2 additions and 2 deletions
|
|
@ -199,9 +199,9 @@ REMOTE_COMMAND CRemoteControl::getCommand(const std::string& command)
|
|||
|
||||
if (m_command == REMOTE_COMMAND::NONE) {
|
||||
m_args.clear();
|
||||
LogWarning(buffer);
|
||||
LogWarning("%s", buffer);
|
||||
} else {
|
||||
LogMessage(buffer);
|
||||
LogMessage("%s", buffer);
|
||||
}
|
||||
|
||||
m_mqtt->publish("response", reply.c_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue