1) mingw doesn't have _vscprintf(); mingw instead has a working snprintf.
2) windows compilers that _do_ have a working _vscprintf spell it so; they do
not spell it _vcsprintf().
--- /dev/null
+ o Major bugfixes:
+ - Fix two typos in tor_vasprintf() that prevented compilation in
+ Windows.
\ No newline at end of file
else
*strp = strp_tmp;
return r;
-#elif defined(MS_WINDOWS)
+#elif defined(_MSC_VER)
/* On Windows, _vsnprintf won't tell us the length of the string if it
* overflows, so we need to use _vcsprintf to tell how much to allocate */
int len, r;
char *res;
- len = _vcsprintf(fmt, args);
+ len = _vscprintf(fmt, args);
if (len < 0) {
*strp = NULL;
return -1;