Fix a c_str() to wxString conversion memory overflow bug.

This commit is contained in:
Andrew Zonenberg 2014-08-13 16:57:22 -04:00 committed by Wayne Stambaugh
parent 7e483f69bd
commit 484bc8344c
1 changed files with 4 additions and 4 deletions

View File

@ -242,8 +242,8 @@ void PCB_EDIT_FRAME::loadFootprints( NETLIST& aNetlist, REPORTER* aReporter )
{
msg.Printf( _( "* Warning: component '%s' has footprint '%s' and should be '%s'\n" ),
GetChars( component->GetReference() ),
fpOnBoard->GetFPID().GetFootprintName().c_str(),
component->GetFPID().GetFootprintName().c_str() );
GetChars( fpOnBoard->GetFPID().GetFootprintName() ),
GetChars( component->GetFPID().GetFootprintName() ) );
aReporter->Report( msg );
}
@ -272,7 +272,7 @@ void PCB_EDIT_FRAME::loadFootprints( NETLIST& aNetlist, REPORTER* aReporter )
msg.Printf( _( "*** Warning: Component '%s' footprint ID '%s' is not "
"valid. ***\n" ),
GetChars( component->GetReference() ),
component->GetFPID().GetFootprintName().c_str() );
GetChars( component->GetFPID().GetFootprintName() ) );
aReporter->Report( msg );
}
@ -294,7 +294,7 @@ void PCB_EDIT_FRAME::loadFootprints( NETLIST& aNetlist, REPORTER* aReporter )
msg.Printf( _( "*** Warning: component '%s' footprint '%s' was not found in "
"any libraries in the footprint library table. ***\n" ),
GetChars( component->GetReference() ),
component->GetFPID().GetFootprintName().c_str() );
GetChars( component->GetFPID().GetFootprintName() ) );
aReporter->Report( msg );
}