From 8d7f65c1c04f7124f1a34062be377fdbe721c46a Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sun, 2 Feb 2020 17:05:54 +0100 Subject: Correct ft_memdel --- libft/src/ft_printf_get_flags.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libft/src/ft_printf_get_flags.c') diff --git a/libft/src/ft_printf_get_flags.c b/libft/src/ft_printf_get_flags.c index 80ee47c..8dffd9a 100644 --- a/libft/src/ft_printf_get_flags.c +++ b/libft/src/ft_printf_get_flags.c @@ -36,7 +36,7 @@ char if (!(fullflag = (char*)malloc((i + 1) * sizeof(char)))) return (NULL); ft_memcpy(fullflag, nstr = ft_substr(format, pos + 1, i), i); - ft_memdel(nstr); + ft_memdel((void**)&nstr); fullflag[i] = '\0'; pflist->actconv = *(format + pos + i + 1); return (fullflag); -- cgit v1.2.3