Fix format string vulnerability in remote command logging

This commit is contained in:
Ember 2026-04-05 17:59:43 -07:00
parent a2309124c7
commit fa4c54a259

View file

@ -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());