Index: trunk/BNC/bncapp.cpp
===================================================================
--- trunk/BNC/bncapp.cpp	(revision 2784)
+++ trunk/BNC/bncapp.cpp	(revision 2785)
@@ -264,5 +264,5 @@
 
   int galIndex = galileoeph->satellite - 51;
-  if (galIndex > PRN_GALILEO_END - PRN_GALILEO_START) {
+  if (galIndex < 0 || galIndex > PRN_GALILEO_END - PRN_GALILEO_START) {
     emit( newMessage("Wrong Galileo Satellite Number", true) );
     exit(1);
