diff options
author | imp <imp@FreeBSD.org> | 1998-07-26 15:30:48 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1998-07-26 15:30:48 +0000 |
commit | 1336d33aa2a66f163518c17d0b5c6d4206b013a6 (patch) | |
tree | 9aaeb2d2b074d146e8a6cc84d0c050c2e73f1ef0 /games/pom | |
parent | 284d56c0e6fc3d4d88735c86ed9c3f7381810329 (diff) | |
download | FreeBSD-src-1336d33aa2a66f163518c17d0b5c6d4206b013a6.zip FreeBSD-src-1336d33aa2a66f163518c17d0b5c6d4206b013a6.tar.gz |
Y2K fix. Fix by jsm28@cam.ac.uk via OpenBSD
Diffstat (limited to 'games/pom')
-rw-r--r-- | games/pom/pom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/pom/pom.c b/games/pom/pom.c index afc57cb..d56932e 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) |