bugix for systems where vsnprintf returns -1 on buffer overrun: double buffer capacity

This commit is contained in:
2020-03-02 13:56:42 +01:00
parent 1378a9fcbb
commit 7dda6ca773

View File

@ -306,7 +306,7 @@ print(const char* fmt, ...)
return *this;
}
if (printed > -1) grow(len+printed);
else grow(len);
else grow(cap*2-1);
}
}