Avoid VLAs with size depending on user input