Fix #11646: Non-thread safe shared buffer returned from GetLogPrefix().

Return string from GetLogPrefix instead of shared string's buffer.
This commit is contained in:
Peter Nelson
2023-12-30 00:07:51 +00:00
committed by rubidium42
parent 2b599c9d00
commit 28ef5146ba
3 changed files with 10 additions and 13 deletions

View File

@@ -120,7 +120,7 @@ std::string GetDebugString();
void ShowInfoI(const std::string &str);
#define ShowInfo(format_string, ...) ShowInfoI(fmt::format(FMT_STRING(format_string), ## __VA_ARGS__))
const char *GetLogPrefix();
std::string GetLogPrefix();
void DebugSendRemoteMessages();
void DebugReconsiderSendRemoteMessages();