Skip to content

Commit

Permalink
Fix Bug #1545668 (Pcbnew can't open P-CAD ASCII files)
Browse files Browse the repository at this point in the history
  • Loading branch information
liftoff-sr authored and jp-charras committed Feb 17, 2016
1 parent 0ac8aad commit 78d0cfc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pcbnew/pcad2kicadpcb_plugin/s_expr_loader.cpp
Expand Up @@ -51,7 +51,8 @@ void LoadInputFile( wxString aFileName, wxXmlDocument* aXmlDoc )

// check file format
if( !fgets( line, sizeof( line ), fp )
|| strcmp( line, ACCEL_ASCII_KEYWORD ) )
// first line starts with "ACCEL_ASCII" with optional stuff on same line after that.
|| memcmp( line, ACCEL_ASCII_KEYWORD, sizeof(ACCEL_ASCII_KEYWORD)-1 ) )
THROW_IO_ERROR( "Unknown file type" );

// rewind the file
Expand Down

0 comments on commit 78d0cfc

Please sign in to comment.