bugix for systems where vsnprintf returns -1 on buffer overrun: double buffer capacity
This commit is contained in:
@ -306,7 +306,7 @@ print(const char* fmt, ...)
|
||||
return *this;
|
||||
}
|
||||
if (printed > -1) grow(len+printed);
|
||||
else grow(len);
|
||||
else grow(cap*2-1);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user