if (mg->mg_len >= 0)
nmg->mg_ptr = SAVEPVN(mg->mg_ptr, mg->mg_len);
else if (mg->mg_len == HEf_SVKEY)
- nmg->mg_ptr = (char*)sv_dup((SV*)mg->mg_ptr);
+ nmg->mg_ptr = (char*)sv_dup_inc((SV*)mg->mg_ptr);
}
mgprev = nmg;
}
UV i;
Renew(ary, newsize, SVTBLENT*);
- Zero(&ary[oldsize * sizeof(SVTBLENT*)], (newsize-oldsize) * sizeof(SVTBLENT*), char);
+ Zero(&ary[oldsize], newsize-oldsize, SVTBLENT*);
tbl->tbl_max = --newsize;
tbl->tbl_ary = ary;
for (i=0; i < oldsize; i++, ary++) {