Browse Source

Revert "Fix segfault in ext/date since 957aa2"

This reverts commit b5e5098c50.

A proper fix from Derick is underway. I apologise for stepping on his toes ;)
pull/1245/merge
Matteo Beccati 11 years ago
parent
commit
4cabbf9781
  1. 4
      ext/date/lib/parse_tz.c

4
ext/date/lib/parse_tz.c

@ -89,8 +89,8 @@ static void read_header(const unsigned char **tzf, timelib_tzinfo *tz)
static void skip_transistions_64bit(const unsigned char **tzf, timelib_tzinfo *tz)
{
if (tz->timecnt) {
*tzf += (sizeof(int64_t) * (tz->timecnt));
*tzf += (sizeof(unsigned char) * (tz->timecnt));
*tzf += (sizeof(int64_t) * (tz->timecnt + 1));
*tzf += (sizeof(unsigned char) * (tz->timecnt + 1));
}
}

Loading…
Cancel
Save