From da75bdbf72e9d906a65e67f8140dc11e0f86c804 Mon Sep 17 00:00:00 2001 From: Etienne Rey-bethbeder Date: Tue, 28 Feb 2023 14:53:56 +0100 Subject: [PATCH] SIEG HIEL --- builtins/exit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtins/exit.c b/builtins/exit.c index 2c6b3c6..68d2c98 100644 --- a/builtins/exit.c +++ b/builtins/exit.c @@ -6,7 +6,7 @@ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/02/24 10:17:59 by erey-bet #+# #+# */ -/* Updated: 2023/02/28 14:50:24 by erey-bet ### ########.fr */ +/* Updated: 2023/02/28 14:53:35 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ @@ -18,7 +18,7 @@ static int error(int err, char *reason, char *problem, int fd) if (problem != NULL) { ft_putstr_fd(problem, 2); - write(fd, ": ", 2); + write(2, ": ", 3); } ft_putstr_fd(reason, 2); return (err);