command: pass right arguments to execvp

The first argument is the command (exec) and the next is the
actual command we executed.
This commit is contained in:
Wim Taymans 2020-07-16 11:42:55 +02:00
parent 02be602f97
commit f306cbde0b

View file

@ -333,7 +333,7 @@ execute_command_exec(struct pw_command *command, struct pw_context *context, cha
if (pid == 0) {
pw_log_info("exec %s", command->args[1]);
res = execvp(command->args[1], command->args);
res = execvp(command->args[1], &command->args[1]);
if (res == -1) {
res = -errno;
*err = spa_aprintf("'%s': %m", command->args[1]);