Update logs.cpp

Fix std::string reuse
This commit is contained in:
Ivan 2024-11-05 21:59:39 +03:00 committed by GitHub
parent c31cb216d2
commit 63d0917e34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -412,7 +412,7 @@ void logs::message::broadcast(const char* fmt, const fmt_type_info* sup, ...) co
for (auto v = sup; v && v->fmt_string; v++)
args_count++;
text.reserve(50000);
text.clear();
args.resize(args_count);
va_list c_args;