diff options
author | pommicket <pommicket@gmail.com> | 2022-11-03 20:22:03 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-11-03 20:22:03 -0400 |
commit | e894fe92cdc669ae05d15da2a66bc8db5af8bfdf (patch) | |
tree | f66e98e3189e3c18730a6d964d96088ed36db282 /base.h | |
parent | e263805bf5e6f4a13f82287803ad3c44e1c1cc5e (diff) |
[1.3] allow newer glsl versions w IN,OUT macros, msi version
Diffstat (limited to 'base.h')
-rw-r--r-- | base.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -132,10 +132,11 @@ typedef unsigned long long ullong; #if _WIN32 static void print(char const *fmt, ...) { - char buf[256]; + char buf[2048]; + buf[2047] = '\0'; va_list args; va_start(args, fmt); - vsprintf_s(buf, sizeof buf, fmt, args); + vsnprintf(buf, sizeof buf - 1, fmt, args); va_end(args); OutputDebugStringA(buf); } |