1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-03 15:19:42 +00:00

[General] Escape format for strings

This commit is contained in:
Koncord 2017-08-31 20:08:49 +08:00
parent 499c7db121
commit 54f5104345
2 changed files with 2 additions and 2 deletions

View file

@ -123,7 +123,7 @@ namespace mwmp
else
{
mHistory->addText(color + msg);
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, msg.c_str());
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "%s", msg.c_str());
}
}

View file

@ -80,7 +80,7 @@ namespace mwmp
{
if (write)
{
RakNet::RakString rstr(str.c_str());
RakNet::RakString rstr("%s", str.c_str());
if (compress)
rstr.SerializeCompressed(bs);
else