Index: trunk/BNC/RTCM3/rtcm3torinex.c
===================================================================
--- trunk/BNC/RTCM3/rtcm3torinex.c	(revision 1036)
+++ trunk/BNC/RTCM3/rtcm3torinex.c	(revision 1037)
@@ -1,5 +1,5 @@
 /*
   Converter for RTCM3 data to RINEX.
-  $Id: rtcm3torinex.c,v 1.13 2008/08/09 23:58:09 weber Exp $
+  $Id: rtcm3torinex.c,v 1.14 2008/08/11 14:01:54 weber Exp $
   Copyright (C) 2005-2008 by Dirk Stöcker <stoecker@alberding.eu>
 
@@ -51,5 +51,5 @@
 
 /* CVS revision and version */
-static char revisionstr[] = "$Revision: 1.13 $";
+static char revisionstr[] = "$Revision: 1.14 $";
 
 #ifndef COMPILEDATE
@@ -438,8 +438,10 @@
         GETBITS(syncf,1) /* sync */
         GETBITS(i,5)
-        gnss->numsats = i;
+    //  gnss->numsats = i;
+        gnss->numsats += i;                                    // If GLONASS observations come first, Weber
         SKIPBITS(4) /* smind, smint */
 
-        for(num = 0; num < gnss->numsats; ++num)
+    //  for(num = 0; num < gnss->numsats; ++num)
+        for(num = gnss->numsats-i; num < gnss->numsats; ++num) // If GLONASS observations come first, Weber
         {
           int sv, code, l1range, c,l,s,ce,le,se,amb=0;
@@ -1626,5 +1628,5 @@
 
 #ifndef NO_RTCM3_MAIN
-static char datestr[]     = "$Date: 2008/08/09 23:58:09 $";
+static char datestr[]     = "$Date: 2008/08/11 14:01:54 $";
 
 /* The string, which is send as agent in HTTP request */
