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:
5
NEWS
5
NEWS
@ -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
2
zic.c
@ -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];
|
||||
|
||||
Reference in New Issue
Block a user