From a126dec6a3ff78a118c09138af27a2f48f13adf8 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Fri, 28 Feb 2020 20:56:59 +0100 Subject: Normed --- src/ft_warp_level.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/ft_warp_level.c') diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c index 8739550..3d8a732 100644 --- a/src/ft_warp_level.c +++ b/src/ft_warp_level.c @@ -1,3 +1,15 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_warp_level.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: rbousset +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/02/28 20:54:28 by rbousset #+# #+# */ +/* Updated: 2020/02/28 20:54:29 by rbousset ### ########lyon.fr */ +/* */ +/* ************************************************************************** */ + #include #include #include @@ -44,8 +56,8 @@ int8_t if ((uint32_t)cl->plist->pos_x == cl->mlist->nlx && (uint32_t)cl->plist->pos_y == cl->mlist->nly) { - if (!(next_path = (char *)malloc - ((ft_strlen(cl->mlist->nlevel_path) + 1) * sizeof(char)))) + if (!(next_path = (char *)malloc((ft_strlen( + cl->mlist->nlevel_path) + 1) * sizeof(char)))) return (-1); ft_sprintf(next_path, "%s", cl->mlist->nlevel_path); ft_del_map(cl->mlist); -- cgit v1.2.3