From: Lukas Jiriste Date: Wed, 27 Sep 2023 13:53:44 +0000 (+0200) Subject: Updated Libft to prevent a leak. X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=9440e5565e725c3180ae4244c137c5381fe51116;p=42%2Fft_printf.git Updated Libft to prevent a leak. Added bonus target to Makefile. Changed formatting of conversion.c to comply with the Norm. --- diff --git a/Libft b/Libft index c87057b..5cda9c6 160000 --- a/Libft +++ b/Libft @@ -1 +1 @@ -Subproject commit c87057b8ea8c228b81aeddf70f9836252217b771 +Subproject commit 5cda9c641f76695f327eec126dfb8e9ed91f7792 diff --git a/Makefile b/Makefile index 4c8d68d..23ac4cb 100644 --- a/Makefile +++ b/Makefile @@ -35,3 +35,5 @@ fclean : clean re : fclean $(MAKE) all + +bonus : all diff --git a/conversion.c b/conversion.c index b1ee939..26a1149 100644 --- a/conversion.c +++ b/conversion.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/09/05 11:30:56 by ljiriste #+# #+# */ -/* Updated: 2023/09/15 18:52:33 by ljiriste ### ########.fr */ +/* Updated: 2023/09/27 15:15:22 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -35,7 +35,8 @@ static char *base_str_constr(char type, va_list *args) else if (type == 's') res = ft_strdup(va_arg(*args, char *)); else if (type == 'p') - res = ft_uitoa_base((uintptr_t)va_arg(*args, void *), "0123456789abcdef"); + res = ft_uitoa_base((uintptr_t)va_arg(*args, void *), + "0123456789abcdef"); return (res); }