{
int stages_num;
sn_stage_t **tmp;
+ int i;
if ((n == NULL) || (other == NULL))
return (EINVAL);
memcpy (n->stages + n->stages_num, other->stages,
sizeof (*other->stages) * other->stages_num);
+ for (i = n->stages_num; i < stages_num; i++)
+ SN_STAGE_DEPTH(n->stages[i]) = i;
+
n->stages_num = stages_num;
free (other->stages);