aboutsummaryrefslogtreecommitdiff
path: root/ft_printf.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-10-29 05:20:35 +0100
committerCharles <sircharlesaze@gmail.com>2019-10-29 05:20:35 +0100
commit66ed3290deb97057875aa7372741595e3fa290a6 (patch)
treec2123744a3775f274a07bab24841690498e36fad /ft_printf.c
parent87bce91050b56915dcf5964f6f66d5f47299e7f3 (diff)
downloadft_printf-66ed3290deb97057875aa7372741595e3fa290a6.tar.gz
ft_printf-66ed3290deb97057875aa7372741595e3fa290a6.tar.bz2
ft_printf-66ed3290deb97057875aa7372741595e3fa290a6.zip
String conversion refactor, malloc protection
Diffstat (limited to 'ft_printf.c')
-rw-r--r--ft_printf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ft_printf.c b/ft_printf.c
index 5a57a23..5bfd2e8 100644
--- a/ft_printf.c
+++ b/ft_printf.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/29 00:15:28 by cacharle #+# #+# */
-/* Updated: 2019/10/29 00:16:41 by cacharle ### ########.fr */
+/* Updated: 2019/10/29 05:17:55 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -38,7 +38,7 @@ int ft_printf(const char *format, ...)
write(STDOUT_FILENO, format + i, 1);
continue ;
}
- str = convert_to_str(format_list->content, ap);
+ str = convert(format_list->content, ap);
if (str == NULL)
{
list_destroy(&format_list);