The size of an array declared on the stack should be known at compile time (pre-C99)

Create the array on the heap to circumvent this restriction.