Bugzilla bug 217121: fixed a crash in strftime on Mac OS X. The patch is

contributed by Ben Goodger <bugs@bengoodger.com>.
This commit is contained in:
wchang0222%aol.com 2003-10-24 00:47:19 +00:00
Родитель bb9deac330
Коммит 9133421095
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -1666,7 +1666,8 @@ PR_FormatTime(char *buf, int buflen, const char *fmt, const PRExplodedTime *tm)
*/ */
#if defined(SUNOS4) || (__GLIBC__ >= 2) || defined(XP_BEOS) \ #if defined(SUNOS4) || (__GLIBC__ >= 2) || defined(XP_BEOS) \
|| defined(NETBSD) || defined(OPENBSD) || defined(FREEBSD) || defined(NETBSD) || defined(OPENBSD) || defined(FREEBSD) \
|| defined(DARWIN)
a.tm_zone = NULL; a.tm_zone = NULL;
a.tm_gmtoff = tm->tm_params.tp_gmt_offset + tm->tm_params.tp_dst_offset; a.tm_gmtoff = tm->tm_params.tp_gmt_offset + tm->tm_params.tp_dst_offset;
#endif #endif