From e564daea9217d848b5869f5e47723890934ae8a7 Mon Sep 17 00:00:00 2001 From: Steffen Prohaska Date: Sun, 24 May 2009 08:38:21 +0200 Subject: [PATCH] Fix "MinGW: GCC >= 4 does not need SNPRINTF_SIZE_CORR anymore" The commit message of 3a76fdaf98efbb1dc2f71352c811ab6d2710b74f explains that GCC >= 4 does not need SNPRINTF_SIZE_CORR, but the ifdef tested for < 3, instead of < 4. This is fixed. Thanks to Johannes Sixt for spotting the bug. --- compat/snprintf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/snprintf.c b/compat/snprintf.c index 7d780508a7..6c0fb056a5 100644 --- a/compat/snprintf.c +++ b/compat/snprintf.c @@ -6,7 +6,7 @@ * number of characters to write without the trailing NUL. */ #ifndef SNPRINTF_SIZE_CORR -#if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ < 3 +#if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ < 4 #define SNPRINTF_SIZE_CORR 1 #else #define SNPRINTF_SIZE_CORR 0