vsnprintf: Don't error out on end of format string.

This commit is contained in:
Branimir Karadžić
2017-02-19 21:22:11 -08:00
parent 063450d644
commit e760d0aa9d

View File

@@ -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;
}