Eagle PCB import plugin: sprintf() -> snprintf()

This commit is contained in:
Maciej Suminski 2018-03-13 14:43:15 +01:00
parent aeb999b9ae
commit d906acc0eb
1 changed files with 2 additions and 2 deletions

View File

@ -660,8 +660,8 @@ void EAGLE_PLUGIN::loadPlain( wxXmlNode* aGraphics )
MODULE* module = new MODULE( m_board );
m_board->Add( module, ADD_APPEND );
char temp[40];
sprintf( temp, "@HOLE%d", m_hole_count++ );
char temp[40];
snprintf( temp, sizeof( temp ), "@HOLE%d", m_hole_count++ );
module->SetReference( FROM_UTF8( temp ) );
module->Reference().SetVisible( false );