fixed argv open().

previously wrongly dup2() to STDIN.
This commit is contained in:
lperrey
2021-12-20 22:52:41 +01:00
parent 6a9b7bae1b
commit 8ed97346f7
11 changed files with 78 additions and 87 deletions

View File

@@ -6,7 +6,7 @@
/* By: lperrey <lperrey@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/12/04 19:31:19 by lperrey #+# #+# */
/* Updated: 2021/12/08 22:33:56 by lperrey ### ########.fr */
/* Updated: 2021/12/20 21:51:00 by lperrey ### ########.fr */
/* */
/* ************************************************************************** */
@@ -44,7 +44,7 @@ static int change_prompt(t_all *c)
{
char *tmp;
tmp = init_prompt(c->prompt_base);
tmp = update_prompt(c->prompt_base);
if (!tmp)
return (-1);
free(c->prompt);