summaryrefslogtreecommitdiff
path: root/src/core/hook
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hook')
-rw-r--r--src/core/hook/wee-hook-command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hook/wee-hook-command.c b/src/core/hook/wee-hook-command.c
index c0fd79a4f..f8c3f5e68 100644
--- a/src/core/hook/wee-hook-command.c
+++ b/src/core/hook/wee-hook-command.c
@@ -375,7 +375,7 @@ hook_command_exec (struct t_gui_buffer *buffer, int any_plugin,
0, NULL);
ptr_command_name = utf8_next_char (argv[0]);
- length_command_name = strlen (ptr_command_name);
+ length_command_name = utf8_strlen (ptr_command_name);
hook_exec_start ();