aboutsummaryrefslogtreecommitdiffstats
path: root/libft/src/ft_printf_put_width.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/src/ft_printf_put_width.c')
-rw-r--r--libft/src/ft_printf_put_width.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libft/src/ft_printf_put_width.c b/libft/src/ft_printf_put_width.c
index 30ae97f..d201e82 100644
--- a/libft/src/ft_printf_put_width.c
+++ b/libft/src/ft_printf_put_width.c
@@ -61,7 +61,7 @@ void
str = ft_memset(str, ' ', ft_printf_get_len(pflist));
*(str + ft_printf_get_len(pflist)) = '\0';
ft_printf_cat_output(str, ft_strlen(str), pflist);
- ft_memdel(str);
+ ft_memdel((void**)&str);
}
else if (pflist->conv == 's' && pflist->width - pflist->putlen > 0
&& !pflist->isreverse)
@@ -71,7 +71,7 @@ void
str = ft_memset(str, ' ', ft_printf_get_len(pflist));
*(str + ft_printf_get_len(pflist)) = '\0';
ft_printf_cat_output(str, ft_strlen(str), pflist);
- ft_memdel(str);
+ ft_memdel((void**)&str);
}
}
@@ -89,7 +89,7 @@ void
str = ft_memset(str, ' ', ft_printf_get_len(pflist));
*(str + ft_printf_get_len(pflist)) = '\0';
ft_printf_cat_output(str, ft_strlen(str), pflist);
- ft_memdel(str);
+ ft_memdel((void**)&str);
}
else if (pflist->conv == 's' && pflist->width - pflist->putlen > 0
&& pflist->isreverse)
@@ -100,6 +100,6 @@ void
str = ft_memset(str, ' ', ft_printf_get_len(pflist));
*(str + ft_printf_get_len(pflist)) = '\0';
ft_printf_cat_output(str, ft_strlen(str), pflist);
- ft_memdel(str);
+ ft_memdel((void**)&str);
}
}