From e57898b31dd38667ca2335243b97a247ffc872f4 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 29 Jan 2020 19:49:46 +0100 Subject: One last check --- src/ft_get_map_redo.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/ft_get_map_redo.c b/src/ft_get_map_redo.c index a195227..a621282 100644 --- a/src/ft_get_map_redo.c +++ b/src/ft_get_map_redo.c @@ -82,6 +82,8 @@ ft_get_map_core(int fd, t_cub *clist) i++; } clist->mapl[((clist->map_w + 1) * i) - 1] = '\0'; - ft_printf("mapl >>>> [%s]\n", clist->mapl); + ft_free_words(clist->map); + clist->map = ft_split(clist->mapl, '\n'); + ft_memdel(clist->mapl); return (0); } -- cgit v1.2.3