Fix OSReport leaving a nul byte at the end of every line (#150)

This commit is contained in:
Pieter-Jan Briers
2026-05-01 08:57:39 +02:00
committed by GitHub
parent 702583583d
commit 8d1cdbe235
+1
View File
@@ -21,6 +21,7 @@ static std::string FormatToString(const char* msg, va_list list) {
int ret = vsnprintf(nullptr, 0, msg, list);
std::string buf(ret, '\0');
vsnprintf(buf.data(), buf.size(), msg, list);
buf.pop_back();
return buf;
}