summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1996-07-27 00:51:11 +0000
committerasami <asami@FreeBSD.org>1996-07-27 00:51:11 +0000
commitd5181b8027ef263167bfc8a119428a573ccdac08 (patch)
tree422166ff370d11e31c269e44a3f04be06df88056 /news
parentcc495daaf5a7da01e54c0a0124c099cea49a8b43 (diff)
downloadFreeBSD-ports-d5181b8027ef263167bfc8a119428a573ccdac08.zip
FreeBSD-ports-d5181b8027ef263167bfc8a119428a573ccdac08.tar.gz
Leap year fix. Will work until 2100.
Submitted by: Matt Bartley <mbartley@lear35.cytex.com>
Diffstat (limited to 'news')
-rw-r--r--news/trn/files/patch-aa13
1 files changed, 13 insertions, 0 deletions
diff --git a/news/trn/files/patch-aa b/news/trn/files/patch-aa
new file mode 100644
index 0000000..e08fc00
--- /dev/null
+++ b/news/trn/files/patch-aa
@@ -0,0 +1,13 @@
+--- nntp.c.orig Fri Nov 18 22:01:23 1994
++++ nntp.c Sun Jul 21 13:13:58 1996
+@@ -319,8 +319,8 @@
+ for (month--; month; month--)
+ day += maxdays[month];
+
+- ss = ((((year-1970) * 365 + (year-1968)/4 + day - 1) * 24L + hh) * 60
+- + mm) * 60 + ss;
++ ss = ((((year-1970) * 365 + (year-1969)/4 + day - 1) * 24L + hh) * 60
++ + mm) * 60 + ss;
+
+ return ss;
+ }
OpenPOWER on IntegriCloud