diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2015-06-02 21:28:41 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2015-06-02 21:28:41 +0200 |
commit | 897bb00af12ac069a8c1fc717ee40e9333329b48 (patch) | |
tree | 06766f3a7640e6672a65b0053af673b3ef6b7b4c /degesch.c | |
parent | a6782e5e60427d32ef8aecc5179c5b34fc5dcbb5 (diff) | |
download | xK-897bb00af12ac069a8c1fc717ee40e9333329b48.tar.gz xK-897bb00af12ac069a8c1fc717ee40e9333329b48.tar.xz xK-897bb00af12ac069a8c1fc717ee40e9333329b48.zip |
degesch: add & use strncasecmp_ascii()
Diffstat (limited to 'degesch.c')
-rw-r--r-- | degesch.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)); } |