Gerbview: handle unexpected invalid char

Attempting to print this as a char was causing wxWidgets to assert since
some input is neither ASCII or valid UTF-8.

Reproducable by trying to open zip files as gerber files from the
command line.
This commit is contained in:
Mike Williams 2021-08-04 16:00:00 -04:00
parent c83f1ea1cd
commit 7043498875
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ bool GERBER_FILE_IMAGE::LoadGerberFile( const wxString& aFullFileName )
break;
default:
msg.Printf( "Unexpected char 0x%2.2X <%c<", *text, *text );
msg.Printf( "Unexpected char 0x%2.2X", *text );
AddMessageToList( msg );
text++;
break;