projects
/
Libft.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b0b30c
)
Fix infinite loop
author
Lukas Jiriste
<ljiriste@student.42prague.com>
Fri, 5 Jul 2024 08:33:01 +0000
(10:33 +0200)
committer
Lukas Jiriste
<ljiriste@student.42prague.com>
Sun, 21 Jul 2024 18:21:20 +0000
(20:21 +0200)
ft_arr/ft_vec_copy.c
patch
|
blob
|
history
diff --git
a/ft_arr/ft_vec_copy.c
b/ft_arr/ft_vec_copy.c
index b60c14fa3909c05ea160cb88e8e1e839f480282e..73f6c9771bf12baef6a4ada9b664ee1d17e7a1fb 100644
(file)
--- a/
ft_arr/ft_vec_copy.c
+++ b/
ft_arr/ft_vec_copy.c
@@
-6,7
+6,7
@@
/* By: ljiriste <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/28 12:02:22 by ljiriste #+# #+# */
-/* Updated: 2024/07/0
4 16:36:18
by ljiriste ### ########.fr */
+/* Updated: 2024/07/0
5 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);