mingw fixes

This commit is contained in:
Miodrag Milanovic 2025-12-30 10:08:50 +01:00
parent 8f0b8a06f2
commit dfed52923a
1 changed files with 2 additions and 1 deletions

View File

@ -18,6 +18,7 @@
*/
#include "Util.hpp"
#include <cstring>
#include <stdarg.h>
namespace GateMate {
@ -46,7 +47,7 @@ std::string vstringf(const char *fmt, va_list ap)
va_list apc;
va_copy(apc, ap);
str = (char *)realloc(str, sz);
rc = vsnprintf(str, sz, fmt, apc);
int rc = vsnprintf(str, sz, fmt, apc);
va_end(apc);
if (rc >= 0 && rc < sz)
break;