cli protocol

git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@28 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
Lennart Poettering 2004-06-19 19:27:47 +00:00
parent 6eddcc2f85
commit 81447ed392
7 changed files with 94 additions and 8 deletions

View file

@ -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);