diff options
author | San Mehat <san@google.com> | 2009-05-12 14:35:15 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-05-12 14:35:15 -0700 |
commit | d530592848985ba4edeafeb413eb5ff58c138eab (patch) | |
tree | 8093064811f76ecb2cceecb7599468f54acd27ca /libsysutils | |
parent | 69772dc644e1ccc12b6394267f010100470f3c95 (diff) | |
download | system_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.cpp | 3 |
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; |