summaryrefslogtreecommitdiff
path: root/degesch.c
diff options
context:
space:
mode:
Diffstat (limited to 'degesch.c')
-rw-r--r--degesch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/degesch.c b/degesch.c
index bb54c03..6ebb350 100644
--- a/degesch.c
+++ b/degesch.c
@@ -6388,11 +6388,11 @@ complete_command (struct app_context *ctx, struct completion *data,
prefix = "/";
}
+ size_t word_len = strlen (word);
for (size_t i = 0; i < N_ELEMENTS (g_command_handlers); i++)
{
struct command_handler *handler = &g_command_handlers[i];
- // FIXME: we want an ASCII version
- if (!strncasecmp (word, handler->name, strlen (word)))
+ if (!strncasecmp_ascii (word, handler->name, word_len))
str_vector_add_owned (output,
xstrdup_printf ("%s%s", prefix, handler->name));
}