aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/hdt/hdt-cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/hdt/hdt-cli.c b/com32/hdt/hdt-cli.c
index 324c74ae..6df2818f 100644
--- a/com32/hdt/hdt-cli.c
+++ b/com32/hdt/hdt-cli.c
@@ -439,7 +439,7 @@ void find_cli_callback_descr(const char* module_name,
while (modules_list->modules[modules_iter].name &&
strncmp(module_name,
modules_list->modules[modules_iter].name,
- module_len) != 0)
+ strlen(modules_list->modules[modules_iter].name)) != 0)
modules_iter++;
if (modules_list->modules[modules_iter].name) {