diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-06-19 19:27:47 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-06-19 19:27:47 +0000 |
commit | 81447ed392e57f822e09cf648cb16732a3e3773f (patch) | |
tree | 6c7030f9b2b6f8b89d91063ac53f2325446f2616 /src/cli.c | |
parent | 6eddcc2f856e2b8910046702e0a096e75942c2d6 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |