diff options
author | 2016-05-03 12:20:29 +0200 | |
---|---|---|
committer | 2016-05-03 12:20:29 +0200 | |
commit | f97b68d3ed8312f0800fc0e501ad0174a968d3e9 (patch) | |
tree | bf876c8732bd657d05908876ae88e1736f306610 /3rdparty/bgfx/src/bgfx.cpp | |
parent | f2aca844f6bbfcc0d1284d6dd546cd552cbe0a92 (diff) |
Update GENie, BGFX and BX (nw)
Diffstat (limited to '3rdparty/bgfx/src/bgfx.cpp')
-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); |