mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 00:20:01 +00:00
remap-redux: fix potential overrun
This commit is contained in:
parent
ad671a153a
commit
13a9d11a2c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user