aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_map_redo.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-29 19:49:46 +0100
committerRudy Bousset <rbousset@z2r5p2.le-101.fr>2020-01-29 19:49:46 +0100
commite57898b31dd38667ca2335243b97a247ffc872f4 (patch)
tree8b4049363965cdab0a112aefceaaf36f210bb6d4 /src/ft_get_map_redo.c
parentgood good (diff)
download42-cub3d-e57898b31dd38667ca2335243b97a247ffc872f4.tar.gz
42-cub3d-e57898b31dd38667ca2335243b97a247ffc872f4.tar.bz2
42-cub3d-e57898b31dd38667ca2335243b97a247ffc872f4.tar.xz
42-cub3d-e57898b31dd38667ca2335243b97a247ffc872f4.tar.zst
42-cub3d-e57898b31dd38667ca2335243b97a247ffc872f4.zip
One last check
Diffstat (limited to 'src/ft_get_map_redo.c')
-rw-r--r--src/ft_get_map_redo.c4
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);
}