summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjanzen <pjanzen@openbsd.org>1998-07-26 06:27:39 +0000
committerpjanzen <pjanzen@openbsd.org>1998-07-26 06:27:39 +0000
commit7b5935c40a92d0f4638c5a13b4012bf92e967490 (patch)
tree73ff87ba8812a941ef4f866dec6ca01991341e3f
parent(3) not (3S) (diff)
downloadwireguard-openbsd-7b5935c40a92d0f4638c5a13b4012bf92e967490.tar.xz
wireguard-openbsd-7b5935c40a92d0f4638c5a13b4012bf92e967490.zip
Y2K fix; jsm28@cam.ac.uk
-rw-r--r--games/pom/pom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/games/pom/pom.c b/games/pom/pom.c
index 02a0462a600..50201e4cf2c 100644
--- a/games/pom/pom.c
+++ b/games/pom/pom.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: pom.c,v 1.5 1998/07/26 06:27:39 pjanzen Exp $ */
/* $NetBSD: pom.c,v 1.6 1996/02/06 22:47:29 jtc Exp $ */
/*
@@ -99,7 +100,7 @@ main()
days = (GMT->tm_yday + 1) + ((GMT->tm_hour +
(GMT->tm_min / 60.0) + (GMT->tm_sec / 3600.0)) / 24.0);
for (cnt = EPOCH; cnt < GMT->tm_year; ++cnt)
- days += isleap(cnt) ? 366 : 365;
+ days += isleap(cnt + 1900) ? 366 : 365;
today = potm(days) + .5;
(void)printf("The Moon is ");
if ((int)today == 100)