From cfe186a919a2358b598792d7b2db3d3fa1ab591b Mon Sep 17 00:00:00 2001 From: Twinaphex Date: Thu, 4 Jun 2015 00:32:08 +0200 Subject: [PATCH] (menu_input.c) Prevent warning --- menu/menu_input.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/menu/menu_input.c b/menu/menu_input.c index 54ff50b614..c2d390caaa 100644 --- a/menu/menu_input.c +++ b/menu/menu_input.c @@ -514,12 +514,17 @@ int menu_input_bind_iterate(void) current = rarch_get_time_usec(); timeout = (menu->binds.timeout_end - current) / 1000000; + if (bind_mode_kb) snprintf(msg, sizeof(msg), - bind_mode_kb ? "[%s]\npress keyboard\n(timeout %d seconds)" : - "[%s]\npress joypad\n(RETURN to skip)", + "[%s]\npress keyboard\n(timeout %d seconds)", input_config_bind_map[ menu->binds.begin - MENU_SETTINGS_BIND_BEGIN].desc, timeout); + else + snprintf(msg, sizeof(msg), + "[%s]\npress joypad\n(RETURN to skip)", + input_config_bind_map[ + menu->binds.begin - MENU_SETTINGS_BIND_BEGIN].desc); menu_driver_render_messagebox(msg);