prog_limit.c
changeset 67 abe63a276a36
parent 64 993b97c4ad2d
child 77 49e0babccb23
--- 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;