summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
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);
}