mirror of
https://github.com/bkaradzic/bx.git
synced 2026-02-18 13:03:06 +01:00
vsnprintf: Don't error out on end of format string.
This commit is contained in:
@@ -581,9 +581,12 @@ namespace bx
|
||||
while (_err->isOk() )
|
||||
{
|
||||
char ch = '\0';
|
||||
read(&reader, ch, _err);
|
||||
|
||||
if (!_err->isOk() )
|
||||
Error err;
|
||||
read(&reader, ch, &err);
|
||||
|
||||
if (!_err->isOk()
|
||||
|| !err.isOk() )
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user