diff options
Diffstat (limited to 'time/zic.c')
-rw-r--r-- | time/zic.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,6 +1,6 @@ #ifndef lint #ifndef NOID -static char elsieid[] = "@(#)zic.c 7.87"; +static char elsieid[] = "@(#)zic.c 7.91"; #endif /* !defined NOID */ #endif /* !defined lint */ @@ -1464,7 +1464,9 @@ const char * const name; convert(eitol(timecnt), tzh.tzh_timecnt); convert(eitol(typecnt), tzh.tzh_typecnt); convert(eitol(charcnt), tzh.tzh_charcnt); + (void) strncpy(tzh.tzh_magic, TZ_MAGIC, sizeof tzh.tzh_magic); #define DO(field) (void) fwrite((void *) tzh.field, (size_t) sizeof tzh.field, (size_t) 1, fp) + DO(tzh_magic); DO(tzh_reserved); DO(tzh_ttisgmtcnt); DO(tzh_ttisstdcnt); |