Branch: Tag:

2007-05-14

2007-05-14 16:50:59 by Martin Nilsson <mani@lysator.liu.se>

More paranoia

Rev: lib/modules/Calendar.pmod/Timezone.pmod:1.37

119:   .Rule.Timezone tz_from_tzfile(string tzfile)   {    array header = array_sscanf(tzfile, "%4s%16s%4c%4c%4c%4c%4c%4c"); +  if( sizeof(header)<8 ) return 0;    array zoneabbr = tzfile[44+header[5]*4+header[5]+header[6]*6..44+header[5]*4+header[5]+header[6]*6+header[7]-1]/"\0";    if(!expert_tzn)    expert_tzn=master()->resolv("Calendar")["TZnames"];