summaryrefslogtreecommitdiffstats
path: root/libsysutils
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-05-12 14:35:15 -0700
committerSan Mehat <san@google.com>2009-05-12 14:35:15 -0700
commitd530592848985ba4edeafeb413eb5ff58c138eab (patch)
tree8093064811f76ecb2cceecb7599468f54acd27ca /libsysutils
parent69772dc644e1ccc12b6394267f010100470f3c95 (diff)
downloadsystem_core-d530592848985ba4edeafeb413eb5ff58c138eab.zip
system_core-d530592848985ba4edeafeb413eb5ff58c138eab.tar.gz
system_core-d530592848985ba4edeafeb413eb5ff58c138eab.tar.bz2
libsysutils: Send command arguments to the command, not the command again :P
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'libsysutils')
-rw-r--r--libsysutils/src/FrameworkListener.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsysutils/src/FrameworkListener.cpp b/libsysutils/src/FrameworkListener.cpp
index 2a96e9a..eb96c9a 100644
--- a/libsysutils/src/FrameworkListener.cpp
+++ b/libsysutils/src/FrameworkListener.cpp
@@ -73,7 +73,8 @@ void FrameworkListener::dispatchCommand(SocketClient *cli, char *cmd) {
FrameworkCommand *c = *i;
if (!strcmp(cm, c->getCommand())) {
- if (c->runCommand(cli, cmd)) {
+ cm += strlen(cm) +1;
+ if (c->runCommand(cli, cm)) {
LOGW("Handler '%s' error (%s)", c->getCommand(), strerror(errno));
}
return;