Skip to content

Commit

Permalink
Bugfix: correct cutoff year
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfru committed Sep 15, 2014
1 parent 183f620 commit a2dfd52
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Binary file modified v0100/lib/lcdh.a
Binary file not shown.
12 changes: 6 additions & 6 deletions v0100/srclib/bldtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ time_t __buildtime(struct tm* tm)
// Note: this introduces incompatibility with the C standard.
if
(
tm->tm_sec < 0 || tm->tm_sec > 60 ||
tm->tm_min < 0 || tm->tm_min > 59 ||
tm->tm_hour < 0 || tm->tm_hour > 23 ||
tm->tm_mday < 1 || tm->tm_mday > 31 ||
tm->tm_mon < 0 || tm->tm_mon > 11 ||
tm->tm_year < 70 || tm->tm_year > 138
tm->tm_sec < 0 || tm->tm_sec > 60 ||
tm->tm_min < 0 || tm->tm_min > 59 ||
tm->tm_hour < 0 || tm->tm_hour > 23 ||
tm->tm_mday < 1 || tm->tm_mday > 31 ||
tm->tm_mon < 0 || tm->tm_mon > 11 ||
tm->tm_year < 70 || tm->tm_year > 70+135
)
return (time_t)-1;

Expand Down

0 comments on commit a2dfd52

Please sign in to comment.