aboutsummaryrefslogtreecommitdiff
path: root/base/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'base/main.cpp')
-rw-r--r--base/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 51ca83fe0f..fc9fa4eaea 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -461,7 +461,7 @@ void CDECL debug(int level, const char *s, ...) {
return;
va_start(va, s);
- vsprintf(buf, s, va);
+ vsnprintf(buf, STRINGBUFLEN, s, va);
va_end(va);
debugHelper(buf);
@@ -472,7 +472,7 @@ void CDECL debug(const char *s, ...) {
va_list va;
va_start(va, s);
- vsprintf(buf, s, va);
+ vsnprintf(buf, STRINGBUFLEN, s, va);
va_end(va);
debugHelper(buf);