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_put_int.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libft/src/ft_printf_put_int.c') diff --git a/libft/src/ft_printf_put_int.c b/libft/src/ft_printf_put_int.c index ddf06b7..6aaa49f 100644 --- a/libft/src/ft_printf_put_int.c +++ b/libft/src/ft_printf_put_int.c @@ -87,7 +87,7 @@ void { str = ft_itoa(d); ft_printf_cat_output(str, ft_strlen(str), pflist); - ft_memdel(str); + ft_memdel((void**)&str); } ft_printf_put_width_post(pflist); } @@ -109,7 +109,7 @@ void { str = ft_uitoa(d); ft_printf_cat_output(str, ft_strlen(str), pflist); - ft_memdel(str); + ft_memdel((void**)&str); } ft_printf_put_width_post(pflist); } -- cgit v1.2.3