fsparser: drop CR at the end of line

This commit is contained in:
Gwenhael Goavec-Merou 2021-05-26 17:40:16 +02:00
parent d3a5b712b4
commit b28ae236a1
1 changed files with 2 additions and 0 deletions

View File

@ -60,6 +60,8 @@ int FsParser::parseHeader()
/* drop all comment, base analyze on header */
if (buffer[0] == '/')
continue;
if (buffer[buffer.size()-1] == '\r')
buffer.pop_back();
/* store each line in dedicated buffer for futur use
*/