{"thread":{"id":"40090","subject":"[PATCH] vsnprintf in Visual Studio 2015 doesn't need SNPRINTF_SIZE_CORR any more","startedAt":"2015-08-14T19:39:04Z","lastAt":"2015-08-14T19:39:04Z","messageCount":1,"participants":["Sven Strickroth"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"268063","messageId":"55CE43D8.6000108@cs-ware.de","threadId":"40090","inReplyTo":null,"subject":"[PATCH] vsnprintf in Visual Studio 2015 doesn't need SNPRINTF_SIZE_CORR any more","fromName":"Sven Strickroth","fromEmail":"sven@cs-ware.de","sentAt":"2015-08-14T19:39:04Z","receivedAt":"2015-08-14T19:39:04Z","isPatch":true,"sender":{"key":"sven@cs-ware.de","avatar":null},"body":"W/o this fix there is one character missing at the end.\n\nSigned-off-by: Sven Strickroth <email@cs-ware.de>\n---\n compat/snprintf.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/compat/snprintf.c b/compat/snprintf.c\nindex 42ea1ac..0b11688 100644\n--- a/compat/snprintf.c\n+++ b/compat/snprintf.c\n@@ -9,7 +9,7 @@\n  * always have room for a trailing NUL byte.\n  */\n #ifndef SNPRINTF_SIZE_CORR\n-#if defined(WIN32) && (!defined(__GNUC__) || __GNUC__ < 4)\n+#if defined(WIN32) && (!defined(__GNUC__) || __GNUC__ < 4) && (!defined(_MSC_VER) || _MSC_VER < 1900)\n #define SNPRINTF_SIZE_CORR 1\n #else\n #define SNPRINTF_SIZE_CORR 0\n-- \nBest regards,\n Sven Strickroth\n PGP key id F5A9D4C4 @ any key-server\n"}]}