diff --git a/syscalls.c b/syscalls.c index 6ce1439..a6c0bf0 100644 --- a/syscalls.c +++ b/syscalls.c @@ -33,7 +33,7 @@ int main(int argc, char **argv) { /* Prepare to hand over control over to ls, with the arguments "-la" */ char *command = "/bin/ls", *argv1 = "-la"; - printf("[CHILD ]: execl(%s, %s, NULL);\n", command, argv1); + printf("[CHILD ]: execl(%s, %s, %s, NULL);\n", command, command, argv1); /* execl takes the command, the arguments, and a null-pointer terminator argument. argv[0] is the path to the command