summaryrefslogtreecommitdiffstats
path: root/from.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-01-23 12:19:26 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-01-23 12:19:26 +0000
commit6f622dd0b51d58d121e21285354c083f05c03c03 (patch)
treee3ec1ad5acb4a8bb9f9b318af2ae5bf79370a531 /from.c
parentef9003ddd26c867944e83c70197f985c92ca29a7 (diff)
A slightly optimized version of DE's y2k patch.
Diffstat (limited to 'from.c')
-rw-r--r--from.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/from.c b/from.c
index 3a784639..27bcd8a8 100644
--- a/from.c
+++ b/from.c
@@ -178,8 +178,8 @@ time_t is_from (const char *s, char *path, size_t pathlen)
/* year */
if (sscanf (s, "%d", &yr) != 1) return 0;
- tm.tm_year = yr < 70 ? yr + 100 : (yr > 1900 ? yr - 1900 : yr);
-
+ tm.tm_year = yr > 1900 ? yr - 1900 : (yr < 70 ? yr + 100 : yr);
+
dprint (3,(debugfile, "is_from(): month=%d, day=%d, hr=%d, min=%d, sec=%d, yr=%d.\n",
tm.tm_mon, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec, tm.tm_year));