Use variable length arrays instead of alloca().