diff --git a/src/definitions.h b/src/definitions.h index 597716da..11db3894 100644 --- a/src/definitions.h +++ b/src/definitions.h @@ -187,7 +187,7 @@ inline void Log_func(const char* const msg, ...) va_list args; va_start(args, msg); - vsprintf(szBuf, msg, args); + vsnprintf(szBuf, 512, msg, args); va_end(args); printf("%d: %s\n", count, szBuf);