Index: netlist.c =================================================================== --- netlist.c (revision 37003) +++ netlist.c (revision 37004) @@ -761,7 +761,7 @@ subnets. done[subnet] is 1 if a subnet is already in the snowball. Use a greedy algorithm: mark the first subnet as dine, then always add the shortest from any 'undone' subnet to any 'done' */ - done = calloc(vtp0_len(subnets), 1); + done = calloc(vtp0_len(subnets)+1, 1); done[0] = 1; for(left = vtp0_len(subnets)-1; left > 0; left--) { double best_dist = HUGE_VAL;