summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ft_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_exec.c b/src/ft_exec.c
index dffaf3d..555be96 100644
--- a/src/ft_exec.c
+++ b/src/ft_exec.c
@@ -29,7 +29,7 @@ ft_exec(char **com)
return (ft_error(com[0], 127));
}
else
- if ((execve(com[0] + 2, com, NULL)) != 0)
+ if ((execve(com[0], com, NULL)) != 0)
return (ft_error(com[0], 127));
return (0);
}