← Back to team overview

kicad-developers team mailing list archive

Gerbview Asserts under wx-2.9

 

This changes avoids an Array overflow (Asserted) when arguments are only 1.

Index: gerbview/gerbview.cpp
===================================================================
--- gerbview/gerbview.cpp	(revision 1884)
+++ gerbview/gerbview.cpp	(working copy)
@@ -79,7 +79,7 @@
 
Read_Config();
 
- if( argc == 0 )
+ if( argc <= 1 )
return true;
 
fn = argv[1];