diff --git a/prog_limit.c b/prog_limit.c --- a/prog_limit.c +++ b/prog_limit.c @@ -37,7 +37,7 @@ switch (pid) { case 0: if (set_limit (atoi (argv[1])) == 0) { - i = execvp (argv[2], args); + i = execvp (args[0], args); } else { perror ("Limit Error"); return EXIT_FAILURE;