remap-redux: fix potential overrun

This commit is contained in:
radius 2018-04-10 21:52:27 -05:00
parent ad671a153a
commit 13a9d11a2c

View File

@ -618,8 +618,7 @@ static void menu_action_setting_disp_set_label_input_desc_kbd(
remap_id =
settings->uints.input_keymapper_ids[offset][id];
for (key_id = 0; key_id < MENU_SETTINGS_INPUT_DESC_KBD_END -
MENU_SETTINGS_INPUT_DESC_KBD_BEGIN; key_id++)
for (key_id = 0; key_id < RARCH_MAX_KEYS; key_id++)
{
if(remap_id == key_descriptors[key_id].key)
break;