aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_map.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-06 20:43:42 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-06 20:43:42 +0100
commit6a89966eed6110d0e7a7ec53727c4473d18ad441 (patch)
treece56076af530fdbc94bd41702dda27a815561f2d /src/ft_init_map.c
parentit's going well (diff)
download42-cub3d-6a89966eed6110d0e7a7ec53727c4473d18ad441.tar.gz
42-cub3d-6a89966eed6110d0e7a7ec53727c4473d18ad441.tar.bz2
42-cub3d-6a89966eed6110d0e7a7ec53727c4473d18ad441.tar.xz
42-cub3d-6a89966eed6110d0e7a7ec53727c4473d18ad441.tar.zst
42-cub3d-6a89966eed6110d0e7a7ec53727c4473d18ad441.zip
Fuck execve
Diffstat (limited to 'src/ft_init_map.c')
-rw-r--r--src/ft_init_map.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ft_init_map.c b/src/ft_init_map.c
index 4fa127c..1c12189 100644
--- a/src/ft_init_map.c
+++ b/src/ft_init_map.c
@@ -30,7 +30,9 @@ static int8_t
!(mlist->music_cmd = (char*)ft_calloc(1, sizeof(char))) ||
!(mlist->mapl = (char*)ft_calloc(1, sizeof(char))) ||
!(mlist->map = (char**)ft_calloc(2, sizeof(char*))) ||
- !(mlist->map[0] = (char*)ft_calloc(1, sizeof(char))))
+ !(mlist->map[0] = (char*)ft_calloc(1, sizeof(char))) ||
+ !(mlist->mcmd_words = (char**)ft_calloc(2, sizeof(char*))) ||
+ !(mlist->mcmd_words[0] = (char*)ft_calloc(1, sizeof(char))))
return (-1);
return (0);
}
@@ -41,6 +43,7 @@ int8_t
if (ft_init_map_callocs(mlist) < 0)
return (-1);
mlist->map[1] = 0;
+ mlist->mcmd_words[1] = 0;
mlist->map_w = 0;
mlist->map_h = 0;
mlist->mapl_len = 0;