summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-11-03 20:22:03 -0400
committerpommicket <pommicket@gmail.com>2022-11-03 20:22:03 -0400
commite894fe92cdc669ae05d15da2a66bc8db5af8bfdf (patch)
treef66e98e3189e3c18730a6d964d96088ed36db282 /base.h
parente263805bf5e6f4a13f82287803ad3c44e1c1cc5e (diff)
[1.3] allow newer glsl versions w IN,OUT macros, msi version
Diffstat (limited to 'base.h')
-rw-r--r--base.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/base.h b/base.h
index 00d6a5b..ee427fc 100644
--- a/base.h
+++ b/base.h
@@ -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);
}