Index: trunk/BNC/src/bncrinex.cpp
===================================================================
--- trunk/BNC/src/bncrinex.cpp	(revision 8670)
+++ trunk/BNC/src/bncrinex.cpp	(revision 8671)
@@ -341,5 +341,15 @@
                                 _rnxV3, &_nextCloseEpoch);
 
-  int statIDlength = _statID.size() -1;
+  int n = _statID.size();
+  int statIDlength;
+  if (n > 9) {
+    statIDlength = 9; // rnx3
+  }
+  else if (n > 4) {
+    statIDlength = 4; // rnx2
+  }
+  else {
+    statIDlength = n;
+  }
   QString ID = _statID.left(statIDlength);
   ID = ID.toUpper();
@@ -375,5 +385,5 @@
         continue;
       if (hlp.join(" ").indexOf(_statID, 0) != -1) {
-        country = hlp[2];
+        country = hlp[2].left(3);
       }
     }
