Index: branches/BNC_2.12/src/bncrinex.cpp
===================================================================
--- branches/BNC_2.12/src/bncrinex.cpp	(revision 8667)
+++ branches/BNC_2.12/src/bncrinex.cpp	(revision 8668)
@@ -340,5 +340,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();
@@ -374,5 +384,5 @@
         continue;
       if (hlp.join(" ").indexOf(_statID, 0) != -1) {
-        country = hlp[2];
+        country = hlp[2].left(3);
       }
     }
