Fix VLA warning