Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5305928 authored by San Mehat's avatar San Mehat
Browse files

libsysutils: Send command arguments to the command, not the command again :P



Signed-off-by: default avatarSan Mehat <san@google.com>
parent 69772dc6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;