From 975845111cd932e0c0d0fc18cee8c3b77d51a322 Mon Sep 17 00:00:00 2001 From: nicolas-arnaud Date: Sun, 20 Nov 2022 18:21:28 +0100 Subject: [PATCH] forgidden memset use --- src/parsing/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsing/map.c b/src/parsing/map.c index 70018e4..7c250c1 100644 --- a/src/parsing/map.c +++ b/src/parsing/map.c @@ -92,7 +92,7 @@ char **create_map_array(t_slist *e_lst, int wide, int deep) { end_line = ft_calloc(wide - ft_strlen(e_lst->content) + 1, sizeof(char)); - end_line = memset(end_line, + end_line = ft_memset(end_line, '0', wide - ft_strlen(e_lst->content) * sizeof(char)); ret[i] = ft_strjoin(e_lst->content, end_line); free(end_line);