Fix parsing last line without CRLF/LF.
Check EOF at the end of the buffer.
This commit is contained in:
@@ -58,6 +58,7 @@ const char * readYamlFile(const char* fullpath, const YamlParserCalls* calls, vo
|
||||
if (bytes_read == 0)
|
||||
break;
|
||||
|
||||
if (f_eof(&file)) yp.set_eof();
|
||||
if (yp.parse(buffer, bytes_read) != YamlParser::CONTINUE_PARSING)
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user