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_sprintf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libft/src/ft_sprintf.c') diff --git a/libft/src/ft_sprintf.c b/libft/src/ft_sprintf.c index 0cf5dc2..7cf0204 100644 --- a/libft/src/ft_sprintf.c +++ b/libft/src/ft_sprintf.c @@ -24,9 +24,9 @@ static int ft_strlcpy(str, pflist->output, pflist->fulllen + 1); ret = pflist->fulllen; - ft_memdel(pflist->output); - ft_memdel(pflist->fullflag); - ft_memdel(pflist); + ft_memdel((void**)&pflist->output); + ft_memdel((void**)&pflist->fullflag); + ft_memdel((void**)&pflist); return (ret); } -- cgit v1.2.3