openbsd-ports/astro/sattrack/patches/patch-src_sattrack_sattime_c
sthen f9f62825ed - fix Y2K bug, pointed out by Ross Tucker on ports@
- we may not distribute modified versions; adjust PERMIT_*
- bump PKGNAME
2009-05-04 10:25:39 +00:00

13 lines
503 B
Plaintext

$OpenBSD: patch-src_sattrack_sattime_c,v 1.1 2009/05/04 10:25:39 sthen Exp $
--- src/sattrack/sattime.c.orig Sun May 3 23:14:37 2009
+++ src/sattrack/sattime.c Sun May 3 23:19:00 2009
@@ -269,7 +269,7 @@ int gdnD, gdnM, gdnY;
if (gdnY < 50) /* allow 4 or 2 digit year specifications */
gdnY += 2000;
else
- if (gdnY < 100)
+ if (gdnY < 200)
gdnY += 1900;
result = (long) ((((gdnY-1901)*1461) >> 2) + monthDays[gdnM-1] + gdnD+365);