diff --git a/pcbnew/load_select_footprint.cpp b/pcbnew/load_select_footprint.cpp index 05d4c02118..73ddbcdfce 100644 --- a/pcbnew/load_select_footprint.cpp +++ b/pcbnew/load_select_footprint.cpp @@ -438,14 +438,14 @@ bool FOOTPRINT_EDIT_FRAME::SaveLibraryAs( const wxString& aLibraryPath ) if( !cur ) { - msg = wxString::Format( _( "Unable to find a reader for '%s." ), curLibPath ); + msg = wxString::Format( _( "Unable to find a reader for '%s'." ), curLibPath ); DisplayError( this, msg ); return false; } if( !dst ) { - msg = wxString::Format( _( "Unable to find a writer for '%s." ), dstLibPath ); + msg = wxString::Format( _( "Unable to find a writer for '%s'." ), dstLibPath ); DisplayError( this, msg ); return false; } diff --git a/pcbnew/plugin.cpp b/pcbnew/plugin.cpp index c5ca8941d5..8a14c237b1 100644 --- a/pcbnew/plugin.cpp +++ b/pcbnew/plugin.cpp @@ -325,10 +325,11 @@ bool PLUGIN::fileStartsWithBinaryHeader( const wxString& aFilePath, const std::v if( input.IsOk() && !input.Eof() ) { - if (input.GetLength() < aHeader.size()) + if( input.GetLength() < aHeader.size() ) return false; std::vector parsedHeader(aHeader.size()); + if (!input.ReadAll(parsedHeader.data(), parsedHeader.size())) return false;