Index: /trunk/rtcm3torinex/lib/rtcm3torinex.c
===================================================================
--- /trunk/rtcm3torinex/lib/rtcm3torinex.c	(revision 5534)
+++ /trunk/rtcm3torinex/lib/rtcm3torinex.c	(revision 5535)
@@ -1486,8 +1486,8 @@
                 {
                   int k = handle->GLOFreq[RTCM3_MSM_NUMSAT-i-1];
-                  if(!k && extsat[count] < 14)
+                  if(!k && extsat[numsat] < 14)
                   {
                     k = handle->GLOFreq[RTCM3_MSM_NUMSAT-i-1]
-                    = 100+extsat[count]-7;
+                    = 100+extsat[numsat]-7;
                   }
                   if(k)
