Avoid undefined behavior (index 101 out of bounds for type 'struct (anonymous struct at mp_wyr.c:113:8) [14]')