SET(sarg_VERSION 2)
SET(sarg_REVISION "3.2-pre1")
SET(sarg_BUILD "")
-SET(sarg_BUILDDATE "Dec-27-2010")
+SET(sarg_BUILDDATE "Jan-12-2011")
INCLUDE(AddFileDependencies)
INCLUDE(CheckIncludeFile)
-#define VERSION PACKAGE_VERSION" Dec-27-2010"
+#define VERSION PACKAGE_VERSION" Jan-12-2011"
#define PGM PACKAGE_NAME
#define URL "http://sarg.sourceforge.net"
str+=5;
if (!isdigit(str[0]) || !isdigit(str[1])) continue;
day0=(str[0]-'0')*10+(str[1]-'0');
+ if (day0<1 || day0>31) continue;
str+=2;
- month0=(str[0]-'0')*10+(str[1]-'0');
- if (month0>=12) continue;
+ month0=(str[0]-'0')*10+(str[1]-'0')-1;
+ if (month0<0 || month0>11) continue;
str+=2;
year0=0;
for (i=0 ; isdigit(str[i]) && i<4 ; i++) year0=year0*10+(str[i]-'0');
if (!isdigit(str[0]) || !isdigit(str[1])) continue;
day1=(str[0]-'0')*10+(str[1]-'0');
+ if (day1<1 || day1>31) continue;
str+=2;
- month1=(str[0]-'0')*10+(str[1]-'0');
- if (month1>=12) continue;
+ month1=(str[0]-'0')*10+(str[1]-'0')-1;
+ if (month1<0 || month1>11) continue;
str+=2;
year1=0;
for (i=0 ; isdigit(str[i]) && i<4 ; i++) year1=year1*10+(str[i]-'0');