mirror of
https://github.com/trabucayre/openFPGALoader.git
synced 2026-08-30 18:02:38 +02:00
fsparser: drop CR at the end of line
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user