summaryrefslogtreecommitdiffstats
path: root/src/cli.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2004-06-19 19:27:47 +0000
committerLennart Poettering <lennart@poettering.net>2004-06-19 19:27:47 +0000
commit81447ed392e57f822e09cf648cb16732a3e3773f (patch)
tree6c7030f9b2b6f8b89d91063ac53f2325446f2616 /src/cli.c
parent6eddcc2f856e2b8910046702e0a096e75942c2d6 (diff)
cli protocol
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@28 fefdeb5f-60dc-0310-8127-8f9354f1896f
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);