summaryrefslogtreecommitdiffstats
path: root/math/ss
diff options
context:
space:
mode:
authortg <tg@FreeBSD.org>2000-03-10 12:31:34 +0000
committertg <tg@FreeBSD.org>2000-03-10 12:31:34 +0000
commit72e132c1a311873953470630e3fc1e25169424fe (patch)
treea04aa526bb02e1df980bf1318af2073dec95cac7 /math/ss
parent0e1ef9e96c98d592b587235ade3f69d8e067869f (diff)
downloadFreeBSD-ports-72e132c1a311873953470630e3fc1e25169424fe.zip
FreeBSD-ports-72e132c1a311873953470630e3fc1e25169424fe.tar.gz
Fix leap year handling until 2099.
PR: 17070 Submitted by: julian
Diffstat (limited to 'math/ss')
-rw-r--r--math/ss/files/patch-ad13
1 files changed, 11 insertions, 2 deletions
diff --git a/math/ss/files/patch-ad b/math/ss/files/patch-ad
index a2a8571..0f93812 100644
--- a/math/ss/files/patch-ad
+++ b/math/ss/files/patch-ad
@@ -1,5 +1,14 @@
---- interp.c.orig Tue Apr 20 19:01:03 1999
-+++ interp.c Tue Apr 20 19:03:15 1999
+--- interp.c.orig Mon Feb 7 17:41:53 1994
++++ interp.c Fri Mar 10 13:31:32 2000
+@@ -490,7 +490,7 @@
+ mdays[1] = 28 + (yr%4 == 0);
+
+ if (mo < 1 || mo > 12 || day < 1 || day > mdays[--mo] ||
+- yr > 1999 || yr < 1970) {
++ yr > 2099 || yr < 1970) {
+ error("@dts: invalid argument");
+ cellerror = CELLERROR;
+ return(0.0);
@@ -560,7 +560,7 @@
#if defined(__GO32__) || defined(__NeXT__)
time_t time (time_t *) ;
OpenPOWER on IntegriCloud