mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-29 08:00:56 -04:00
[General] Escape format for strings
This commit is contained in:
parent
499c7db121
commit
54f5104345
@ -123,7 +123,7 @@ namespace mwmp
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
mHistory->addText(color + msg);
|
mHistory->addText(color + msg);
|
||||||
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, msg.c_str());
|
LOG_MESSAGE_SIMPLE(Log::LOG_INFO, "%s", msg.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ namespace mwmp
|
|||||||
{
|
{
|
||||||
if (write)
|
if (write)
|
||||||
{
|
{
|
||||||
RakNet::RakString rstr(str.c_str());
|
RakNet::RakString rstr("%s", str.c_str());
|
||||||
if (compress)
|
if (compress)
|
||||||
rstr.SerializeCompressed(bs);
|
rstr.SerializeCompressed(bs);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user