diff options
author | asami <asami@FreeBSD.org> | 1996-07-27 00:51:11 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1996-07-27 00:51:11 +0000 |
commit | d5181b8027ef263167bfc8a119428a573ccdac08 (patch) | |
tree | 422166ff370d11e31c269e44a3f04be06df88056 /news/trn | |
parent | cc495daaf5a7da01e54c0a0124c099cea49a8b43 (diff) | |
download | FreeBSD-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/trn')
-rw-r--r-- | news/trn/files/patch-aa | 13 |
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; + } |