Skip to content

Commit

Permalink
Use windows vsnprintf fixup logic on all windows environments
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nmathewson committed May 29, 2013
1 parent 5c710c0 commit e826f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion evutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e826f19

Please sign in to comment.