MSVC: vsnprintf in Visual Studio 2015 doesn't need SNPRINTF_SIZE_CORR any more

In MSVC2015 the behavior of vsnprintf was changed. W/o this fix there is one character missing at the end. Signed-off-by: Sven Strickroth <sven@cs-ware.de> Acked-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Acked-by: Sebastian Schuberth <sschuberth@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Sven Strickroth committed Mar 29, 2016 at 18:25 UTC dae26d30f4dfff352fb401e5a24c2df1a0a339f0
1 file changed +1 -1
compat/snprintf.c
+1 -1
@@ -9,7 +9,7 @@
9 * always have room for a trailing NUL byte.
10 */
11 #ifndef SNPRINTF_SIZE_CORR
12 -#if defined(WIN32) && (!defined(__GNUC__) || __GNUC__ < 4)
12 +#if defined(WIN32) && (!defined(__GNUC__) || __GNUC__ < 4) && (!defined(_MSC_VER) || _MSC_VER < 1900)
13 #define SNPRINTF_SIZE_CORR 1
14 #else
15 #define SNPRINTF_SIZE_CORR 0