summaryrefslogtreecommitdiffstats
path: root/src/cli.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.c')
-rw-r--r--src/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cli.c b/src/cli.c
index 4f67f8b7..ec484ace 100644
--- a/src/cli.c
+++ b/src/cli.c
@@ -111,7 +111,7 @@ static void line_callback(struct ioline *line, const char *s, void *userdata) {
l = strcspn(s, delimiter);
for (command = commands; command->name; command++)
- if (!strncmp(s, command->name, l)) {
+ if (strlen(command->name) == l && !strncmp(s, command->name, l)) {
struct tokenizer *t = tokenizer_new(s, command->args);
assert(t);
command->proc(c, t);