Yet another attempted cygwin fix

This commit is contained in:
Evan Miller
2020-08-05 09:53:41 -04:00
parent 05092351df
commit 7436fa0e0e
2 changed files with 3 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ char *g_strdup_printf(const char *format, ...) {
va_start(argp, format);
#ifdef __CYGWIN__
size_t len = 0;
vasnprintf(&ret, &len, format, argp);
ret = vasnprintf(ret, &len, format, argp);
#else
vasprintf(&ret, format, argp);
#endif