From d7b819f2e0faea13034461298a901a21a7957f9d Mon Sep 17 00:00:00 2001 From: Softkandi Date: Mon, 16 Sep 2024 19:43:37 +0200 Subject: [PATCH] replace 'vsnprintf' with '_vsnprintf' The 'vsnprintf' function wasn't available until VC2015. --- src/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug.c b/src/debug.c index 96857a3..169e22d 100644 --- a/src/debug.c +++ b/src/debug.c @@ -108,7 +108,7 @@ void tig_debug_printf(const char* format, ...) va_start(args, format); if (have_debug_funcs) { - vsnprintf(buffer, sizeof(buffer), format, args); + _vsnprintf(buffer, sizeof(buffer), format, args); for (index = 0; index < MAX_DEBUG_FUNCS; index++) { func = tig_debug_funcs[index];