1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-06 12:56:49 +00:00

Remove TZ_MAX_TIMES restriction in zic.c.

This lets zic handle the time rules of Troll station,
Antarctica.  Adapted from a fix by Zefram in:
http://mm.icann.org/pipermail/tz/2014-March/020759.html
* zic.c (timecnt_alloc): New static var.
(attypes): Now a pointer to an array, not a fixed size array.
(writezone, addtt): Don't assume the number of times is less than
TZ_MAX_TIMES.
* NEWS: Document this.
This commit is contained in:
Paul Eggert
2014-03-20 18:11:23 -07:00
parent f3ea6c6f84
commit 725779ad2f
2 changed files with 11 additions and 9 deletions

6
NEWS
View File

@@ -10,8 +10,10 @@ Unreleased, experimental changes
Changes affecting 'zic'
'zic' now is smarter about allocating memory.
(Thanks to Andrew Main (Zefram).)
'zic' no longer rejects locations needing four transitions per
year for the forseeable future, such as Troll station, Antarctica.
(Thanks to Andrew Main (Zefram).) Also, it avoids some unlikely
failures due to integer overflow.
Changes affecting commentary and documentation