fix(error/win): snprintf produces gibberish, should be vsnprintf

This commit is contained in:
phaneron 2023-11-26 14:59:02 -05:00
parent 1d7883aa4e
commit 7e38d8659e

View file

@ -12,7 +12,7 @@ std::string errorf(const char *format, ...) {
constexpr size_t size = 1024; constexpr size_t size = 1024;
char buf[size] = {0}; char buf[size] = {0};
auto n = snprintf(buf, size, format, args); auto n = vsnprintf(buf, size, format, args);
va_end(args); va_end(args);