summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/filesel.cpp
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-09-24 08:56:00 -0400
committer Nathan Woods <npwoods@mess.org>2016-09-24 08:56:00 -0400
commite8f19ee9e811e10cb0ece76b7c763ccd882f3685 (patch)
treede98bfb9c72d465c48d34ad1c06cddf11b467b55 /src/frontend/mame/ui/filesel.cpp
parent29b70720430b958d0b3a5aae734c9e96823c40c9 (diff)
Fixed an off by one error when identifying best entries for typeahead on the file selection and software list dialogs
Diffstat (limited to 'src/frontend/mame/ui/filesel.cpp')
-rw-r--r--src/frontend/mame/ui/filesel.cpp2
1 files changed, 1 insertions, 1 deletions
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;