Prevent error when loading bitmaps from some old schematics

This commit is contained in:
dsa-t 2021-12-01 09:54:48 +00:00 committed by jean-pierre charras
parent 63560ecd7b
commit bfe595819a
1 changed files with 1 additions and 1 deletions

View File

@ -1188,7 +1188,7 @@ SCH_BITMAP* SCH_LEGACY_PLUGIN::loadBitmap( LINE_READER& aReader )
// and put it in memory stream buffer // and put it in memory stream buffer
int len = strlen( line ); int len = strlen( line );
for( ; len > 0 && !isspace( *line ); len -= 3, line += 3 ) for( ; len > 0 && !isspace( *line ) && '$' != *line; len -= 3, line += 3 )
{ {
int value = 0; int value = 0;