diff options
Diffstat (limited to '3rdparty/bgfx/src')
-rw-r--r-- | 3rdparty/bgfx/src/bgfx.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/3rdparty/bgfx/src/bgfx.cpp b/3rdparty/bgfx/src/bgfx.cpp index bf5f020f4f3..5da3c5609b7 100644 --- a/3rdparty/bgfx/src/bgfx.cpp +++ b/3rdparty/bgfx/src/bgfx.cpp @@ -65,8 +65,11 @@ namespace bgfx { char temp[2048]; char* out = temp; + va_list argListCopy; + va_copy(argListCopy, _argList); int32_t len = bx::snprintf(out, sizeof(temp), "%s (%d): ", _filePath, _line); - int32_t total = len + bx::vsnprintf(out + len, sizeof(temp)-len, _format, _argList); + int32_t total = len + bx::vsnprintf(out + len, sizeof(temp)-len, _format, argListCopy); + va_end(argListCopy); if ( (int32_t)sizeof(temp) < total) { out = (char*)alloca(total+1); |