зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
bb9deac330
Коммит
9133421095
|
@ -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
|
||||||
|
|
Загрузка…
Ссылка в новой задаче