From a6187dafc32fcb859649173a3cd8004051663b9d Mon Sep 17 00:00:00 2001 From: Renge Date: Fri, 15 Apr 2022 23:44:45 -0400 Subject: [PATCH] fix: ptr --- hw4/src/jobs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {