Index: trunk/rtcm3torinex/rtcm3torinex.c
===================================================================
--- trunk/rtcm3torinex/rtcm3torinex.c	(revision 1270)
+++ trunk/rtcm3torinex/rtcm3torinex.c	(revision 1824)
@@ -1,5 +1,5 @@
 /*
   Converter for RTCM3 data to RINEX.
-  $Id: rtcm3torinex.c,v 1.35 2008/12/02 15:50:20 stoecker Exp $
+  $Id: rtcm3torinex.c,v 1.36 2008/12/03 08:33:16 stoecker 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.35 $";
+static char revisionstr[] = "$Revision: 1.36 $";
 
 #ifndef COMPILEDATE
@@ -241,5 +241,5 @@
   for(l = leap; l->taicount && year >= l->year; ++l)
   {
-    if(year > l->year || month > l->month || day > l->day)
+    if(year > l->year || month > l->month || (month == l->month && day > l->day))
        ls = l->taicount - GPSLEAPSTART;
   }
@@ -1685,5 +1685,5 @@
 
 #ifndef NO_RTCM3_MAIN
-static char datestr[]     = "$Date: 2008/12/02 15:50:20 $";
+static char datestr[]     = "$Date: 2008/12/03 08:33:16 $";
 
 /* The string, which is send as agent in HTTP request */
