From e8f19ee9e811e10cb0ece76b7c763ccd882f3685 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Sat, 24 Sep 2016 08:56:00 -0400 Subject: Fixed an off by one error when identifying best entries for typeahead on the file selection and software list dialogs --- src/frontend/mame/ui/filesel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/frontend/mame/ui/filesel.cpp') diff --git a/src/frontend/mame/ui/filesel.cpp b/src/frontend/mame/ui/filesel.cpp index 94e09207027..187b7175cb0 100644 --- a/src/frontend/mame/ui/filesel.cpp +++ b/src/frontend/mame/ui/filesel.cpp @@ -446,7 +446,7 @@ void menu_file_selector::handle() if (cur_selected != &entry) { int match = 0; - for (int i = 0; i < m_filename.size(); i++) + for (int i = 0; i < m_filename.size() + 1; i++) { if (core_strnicmp(entry.basename.c_str(), m_filename.c_str(), i) == 0) match = i; -- cgit v1.2.3-70-g09d2