Replace use of variable-length-arrays.