Commit 484bc834 authored by Andrew Zonenberg's avatar Andrew Zonenberg Committed by Wayne Stambaugh

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

parent 7e483f69
...@@ -242,8 +242,8 @@ void PCB_EDIT_FRAME::loadFootprints( NETLIST& aNetlist, REPORTER* aReporter ) ...@@ -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" ), msg.Printf( _( "* Warning: component '%s' has footprint '%s' and should be '%s'\n" ),
GetChars( component->GetReference() ), GetChars( component->GetReference() ),
fpOnBoard->GetFPID().GetFootprintName().c_str(), GetChars( fpOnBoard->GetFPID().GetFootprintName() ),
component->GetFPID().GetFootprintName().c_str() ); GetChars( component->GetFPID().GetFootprintName() ) );
aReporter->Report( msg ); aReporter->Report( msg );
} }
...@@ -272,7 +272,7 @@ void PCB_EDIT_FRAME::loadFootprints( NETLIST& aNetlist, REPORTER* aReporter ) ...@@ -272,7 +272,7 @@ void PCB_EDIT_FRAME::loadFootprints( NETLIST& aNetlist, REPORTER* aReporter )
msg.Printf( _( "*** Warning: Component '%s' footprint ID '%s' is not " msg.Printf( _( "*** Warning: Component '%s' footprint ID '%s' is not "
"valid. ***\n" ), "valid. ***\n" ),
GetChars( component->GetReference() ), GetChars( component->GetReference() ),
component->GetFPID().GetFootprintName().c_str() ); GetChars( component->GetFPID().GetFootprintName() ) );
aReporter->Report( msg ); aReporter->Report( msg );
} }
...@@ -294,7 +294,7 @@ void PCB_EDIT_FRAME::loadFootprints( NETLIST& aNetlist, REPORTER* aReporter ) ...@@ -294,7 +294,7 @@ void PCB_EDIT_FRAME::loadFootprints( NETLIST& aNetlist, REPORTER* aReporter )
msg.Printf( _( "*** Warning: component '%s' footprint '%s' was not found in " msg.Printf( _( "*** Warning: component '%s' footprint '%s' was not found in "
"any libraries in the footprint library table. ***\n" ), "any libraries in the footprint library table. ***\n" ),
GetChars( component->GetReference() ), GetChars( component->GetReference() ),
component->GetFPID().GetFootprintName().c_str() ); GetChars( component->GetFPID().GetFootprintName() ) );
aReporter->Report( msg ); aReporter->Report( msg );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment