From 76cefdc4dc3efa6eb410574a0f5ec42188ba11bd Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 29 Mar 2020 15:42:37 +0200 Subject: Almost --- src/ft_parse_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_parse_map.c') diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index 46fe022..3141171 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -80,7 +80,7 @@ static void ft_memdel((void*)&clist->mlist.filename); if (!(clist->mlist.filename = (char*)malloc((ft_strlen(map_path) + 1) * sizeof(char)))) - ft_error(FT_RET_ALLOC_ERR, FT_ERR_ALLOCATE, clist); + ft_alloc_error(clist); ft_sprintf(clist->mlist.filename, "%s", map_path); } -- cgit v1.2.3