1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-21 16:44:52 +00:00

Fix overallocation problem in zic.

* zic.c (writezone), NEWS: Give 'writetype' TX_MAX_TYPES entries,
not TZ_MAX_TIMES.  (Thanks to Zefram.)
This commit is contained in:
Paul Eggert
2014-03-20 13:35:02 -07:00
parent 6c44b67414
commit 45badd3cb0
2 changed files with 6 additions and 1 deletions

5
NEWS
View File

@ -8,6 +8,11 @@ Unreleased, experimental changes
Crimea switches to Moscow time on 2014-03-30 at 02:00 local time.
(Thanks to Alexander Krivenyshev.) Move its zone.tab entry from UA to RU.
Changes affecting 'zic'
'zic' now is smarter about allocating memory.
(Thanks to Andrew Main (Zefram).)
Changes affecting commentary and documentation
Fix Tuesday/Thursday typo in description of time in Israel.

2
zic.c
View File

@ -1539,7 +1539,7 @@ writezone(const char *const name, const char *const string, char version)
register int thistimei, thistimecnt;
register int thisleapi, thisleapcnt;
register int thistimelim, thisleaplim;
int writetype[TZ_MAX_TIMES];
int writetype[TZ_MAX_TYPES];
int typemap[TZ_MAX_TYPES];
register int thistypecnt;
char thischars[TZ_MAX_CHARS];