Website Summary Files Commits Branches @commit @diff @stats
path: root / src / Generic / ConsoleInterface / Menu.cpp
diff options
context:
space:
mode:
Commit4ae838df9d22037273fe97edc25971e6358549fb (patch)
Author
 Syndamia <kamen@syndamia.com>
2022-05-30 20:18:20 +0300
Committer
 Syndamia <kamen@syndamia.com>
2022-05-30 20:18:20 +0300
Filesf9028216e5c832b5a89715b6452492eb0d4085b2 /src/Generic/ConsoleInterface/Menu.cpp
FMI-OOP-P2_Tables-4ae838df9d22037273fe97edc25971e6358549fb.tar
FMI-OOP-P2_Tables-4ae838df9d22037273fe97edc25971e6358549fb.tar.gz
FMI-OOP-P2_Tables-4ae838df9d22037273fe97edc25971e6358549fb.zip
Parent09b94a7471f2ac5b2958f0fee735c692a444b9ba (diff)
Autocommit at 30.05.2022 @ 20:18
1 files changed, 1 insertions, 1 deletions
-rw-r--r--src/Generic/ConsoleInterface/Menu.cpp2
diff --git a/src/Generic/ConsoleInterface/Menu.cpp b/src/Generic/ConsoleInterface/Menu.cpp
index 910e946..d547990 100644
--- a/src/Generic/ConsoleInterface/Menu.cpp
+++ b/src/Generic/ConsoleInterface/Menu.cpp
@@ -51,7 +51,7 @@ void Menu::navigate() const {
index = menuOptions.get_count();
for (unsigned i = 0; i < menuOptions.get_count() && index == menuOptions.get_count(); i++) {
- if (strncmp(buffer + startIndex, menuOptions[i].get_name(), commandEnd) == 0)
+ if (strncmp(buffer + startIndex, menuOptions[i].get_name(), commandEnd - startIndex) == 0)
index = i;
}