Commit b7cab413 by Nicolas Capens Committed by Nicolas Capens

Use real snprintf when available.

Visual C++ 2015 provides an actual snprintf implementation, so we shouldn't use _snprintf, which does not guarantee null-termination. Bug swiftshader:75 Change-Id: Ia45e49e77a6076e8f9f12ad74c6ad50dbdbf2dbd Reviewed-on: https://swiftshader-review.googlesource.com/10688Tested-by: 's avatarNicolas Capens <nicolascapens@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent b923042e
...@@ -27,8 +27,8 @@ ...@@ -27,8 +27,8 @@
#include <limits.h> #include <limits.h>
#include <algorithm> #include <algorithm>
#if defined(_MSC_VER) #if defined(_MSC_VER) && MSC_VER < 1900
#define snprintf _snprintf #define snprintf _snprintf
#endif #endif
int TSymbolTableLevel::uniqueId = 0; int TSymbolTableLevel::uniqueId = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment