diff --git a/hw4/src/jobs.c b/hw4/src/jobs.c index 1f1f8a1..b34401f 100644 --- a/hw4/src/jobs.c +++ b/hw4/src/jobs.c @@ -341,7 +341,7 @@ int jobs_run(PIPELINE *pline) { } // get args - char **args = jobs_get_args(pline->commands->args); + char **args = jobs_get_args(ptr->args); // run command if (execvp(args[0], args) == -1) {