diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_get_map_redo.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); } |