From fbd69257b509d3374573282ee08f5d9fc9ed4095 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 24 Jan 2020 00:09:11 +0100 Subject: It ain't much but it's honest work --- src/ft_parse_map.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ft_parse_map.c') diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index d3d1f53..2fa5741 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -2,6 +2,7 @@ #include #include #include +#include /* ** I can't close @@ -16,7 +17,8 @@ ft_parse_map(t_win *wlist, t_cub *clist, const char *map_path) fd = open(map_path, O_RDONLY); if (fd < 0) { - ft_printf("\033[31;1mNo map\033[0m\n"); + ft_dprintf(STDERR_FILENO, "Error\n"); + ft_dprintf(STDERR_FILENO, "\033[31;1mNo map\033[0m\n"); ft_exit(2); } ft_get_res(fd, wlist); -- cgit v1.2.3