From 2d9f6852dc83e10757a77061eea3d5d29923dcfc Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 26 Jul 1998 15:30:48 +0000 Subject: [PATCH] Y2K fix. Fix by jsm28@cam.ac.uk via OpenBSD --- games/pom/pom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/pom/pom.c b/games/pom/pom.c index afc57cbcc439..d56932e7b36d 100644 --- a/games/pom/pom.c +++ b/games/pom/pom.c @@ -84,7 +84,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(1900 + cnt) ? 366 : 365; today = potm(days) + .5; (void)printf("The Moon is "); if ((int)today == 100)