From 5fd45019b80aa28769ae1e69b006119c74357216 Mon Sep 17 00:00:00 2001 From: Ignacio Sanchez Gines <863613+drhelius@users.noreply.github.com> Date: Sat, 13 Jan 2024 00:59:05 +0100 Subject: [PATCH] Fix minor warning --- src/definitions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);