mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-20 20:55:42 +00:00
StringFormat::Fmt was re-using va-list incorrectly on linux
This commit is contained in:
@@ -262,6 +262,9 @@ namespace StringFormat
|
||||
|
||||
int size = ::vsnprintf(NULL, 0, format, args)+1;
|
||||
|
||||
va_end(args);
|
||||
va_start(args, format);
|
||||
|
||||
char *buf = new char[size];
|
||||
|
||||
StringFormat::vsnprintf(buf, size, format, args);
|
||||
|
||||
Reference in New Issue
Block a user