mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 10:32:29 +00:00
fix(error/win): snprintf produces gibberish, should be vsnprintf
This commit is contained in:
parent
1d7883aa4e
commit
7e38d8659e
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ std::string errorf(const char *format, ...) {
|
|||
constexpr size_t size = 1024;
|
||||
|
||||
char buf[size] = {0};
|
||||
auto n = snprintf(buf, size, format, args);
|
||||
auto n = vsnprintf(buf, size, format, args);
|
||||
|
||||
va_end(args);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue