1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-12-06 16:03:57 +00:00
SCCS-file: zic.c
SCCS-SID: 7.113
This commit is contained in:
Arthur David Olson
2003-09-16 10:47:05 -04:00
committed by Paul Eggert
parent c1ff4ff5c1
commit 1904e32961

12
zic.c
View File

@ -1155,10 +1155,14 @@ const int nfields;
error(_("time before zero"));
return;
}
if (dayoff < min_time / SECSPERDAY)
return min_time;
if (dayoff > max_time / SECSPERDAY)
return max_time;
if (dayoff < min_time / SECSPERDAY) {
error(_("time too small"));
return;
}
if (dayoff > max_time / SECSPERDAY) {
error(_("time too large"));
return;
}
t = (time_t) dayoff * SECSPERDAY;
tod = gethms(fields[LP_TIME], _("invalid time of day"), FALSE);
cp = fields[LP_CORR];