From e826f19e05b65ffea1a1699160cee7516962c939 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Wed, 29 May 2013 13:30:56 -0400 Subject: [PATCH] Use windows vsnprintf fixup logic on all windows environments Previously I'd relied on mingw to provide a vsnprintf with a conformant return value. But it appears that some mingw environments don't do that. --- evutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evutil.c b/evutil.c index 1627809dd..b9521ec64 100644 --- a/evutil.c +++ b/evutil.c @@ -1562,7 +1562,7 @@ evutil_vsnprintf(char *buf, size_t buflen, const char *format, va_list ap) int r; if (!buflen) return 0; -#ifdef _MSC_VER +#if defined(_MSC_VER) || defined(WIN32) r = _vsnprintf(buf, buflen, format, ap); if (r < 0) r = _vscprintf(format, ap);