2 minor fixes.
This commit is contained in:
parent
c27b2fbf4c
commit
d477004436
|
@ -62,6 +62,7 @@ void SCH_EDIT_FRAME::ExecuteRemoteCommand( const char* cmdline )
|
|||
char line[1024];
|
||||
|
||||
strncpy( line, cmdline, sizeof(line) - 1 );
|
||||
line[ sizeof(line) - 1 ] = '\0';
|
||||
|
||||
char* idcmd = strtok( line, " \n\r" );
|
||||
char* text = strtok( NULL, "\"\n\r" );
|
||||
|
|
|
@ -335,7 +335,7 @@ bool LIB_EDIT_FRAME::SaveActiveLibrary( bool newFile )
|
|||
default_path = search->LastVisitedPath();
|
||||
|
||||
wxFileDialog dlg( this, _( "Part Library Name:" ), default_path,
|
||||
wxEmptyString, SchematicLibraryFileExtension,
|
||||
wxEmptyString, SchematicLibraryFileWildcard,
|
||||
wxFD_SAVE | wxFD_OVERWRITE_PROMPT );
|
||||
|
||||
if( dlg.ShowModal() == wxID_CANCEL )
|
||||
|
|
Loading…
Reference in New Issue