aboutsummaryrefslogtreecommitdiffstats
path: root/libft/src/ft_sprintf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/src/ft_sprintf.c')
-rw-r--r--libft/src/ft_sprintf.c6
1 files changed, 3 insertions, 3 deletions
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);
}