Fix array overrun in cgen_fdecl