From 2ab0ce37dc28bdde79639e629217fef56f0f10c3 Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Fri, 5 Jul 2024 10:33:01 +0200 Subject: [PATCH] Fix infinite loop --- ft_arr/ft_vec_copy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.30.2