Branch: Tag:

1997-10-06

1997-10-06 22:05:52 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

bugfix in explode

Rev: src/array.c:1.17

1279:    if(ret->size == ret->malloced_size)    {    e=ret->size; -  ret=resize_array(ret, ret->size * 2); -  ret->size=0; +  ret=resize_array(ret, e * 2); +  ret->size=e;    }       ITEM(ret)[ret->size].u.string=make_shared_binary_string(s, tmp-s);
1291:    }       if(ret->size == ret->malloced_size) -  ret=resize_array(ret, ret->size * 2); +  { +  e=ret->size; +  ret=resize_array(ret, e * 2); +  ret->size=e; +  }       ITEM(ret)[ret->size].u.string=make_shared_binary_string(s, end-s);    ITEM(ret)[ret->size].type=T_STRING;