From 81447ed392e57f822e09cf648cb16732a3e3773f Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 19 Jun 2004 19:27:47 +0000 Subject: cli protocol git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@28 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cli.c') 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); -- cgit