From: Lukas Jiriste Date: Fri, 5 Jul 2024 08:33:01 +0000 (+0200) Subject: Fix infinite loop X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=2ab0ce37dc28bdde79639e629217fef56f0f10c3;p=Libft.git Fix infinite loop --- diff --git a/ft_arr/ft_vec_copy.c b/ft_arr/ft_vec_copy.c index b60c14f..73f6c97 100644 --- a/ft_arr/ft_vec_copy.c +++ b/ft_arr/ft_vec_copy.c @@ -6,7 +6,7 @@ /* By: ljiriste +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/28 12:02:22 by ljiriste #+# #+# */ -/* Updated: 2024/07/04 16:36:18 by ljiriste ### ########.fr */ +/* Updated: 2024/07/05 10:26:54 by ljiriste ### ########.fr */ /* */ /* ************************************************************************** */ @@ -49,6 +49,7 @@ t_arr_stat ft_vec_copy(t_vec *dest, const t_vec *src, res = ft_vec_append(dest, tmp); if (res != success && free_el) free_el(tmp); + ++i; } if (res != success) ft_vec_free(dest, free_el);