long typecnt = get_long(ptr);
long charcnt = get_long(ptr);
int size = timecnt*5+typecnt*6+isgmtcnt+isstdcnt+leapcnt*8+charcnt;
- char buf[size];
+ char *buf = new char[size];
len = read(fd, buf, size);
if(len==size)
{
name = ptr+abbrind;
}
+ delete[] buf;
}
close(fd);