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_use_flags.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libft/src/ft_printf_use_flags.c') diff --git a/libft/src/ft_printf_use_flags.c b/libft/src/ft_printf_use_flags.c index 7b1299e..4646bc6 100644 --- a/libft/src/ft_printf_use_flags.c +++ b/libft/src/ft_printf_use_flags.c @@ -29,7 +29,7 @@ static void va_list arg, t_printflist *pflist) { - ft_memdel(pflist->fullflag); + ft_memdel((void**)&pflist->fullflag); pflist->fullflag = ft_printf_get_flags(format, pos, pflist); ft_printf_treat_flags(arg, pflist); ft_printf_process(format + pos, arg, pflist); -- cgit v1.2.3