From c6d343fccb84e9fc89dfc75b3f35a352e97b14a4 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 6 Aug 2019 18:19:11 +0200 Subject: details, print_memory start - copied c09 correct ft_split to c07 - strdup parenthesis in malloc - strlcat copied from tested libft --- c03/ex05/ft_strlcat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'c03') diff --git a/c03/ex05/ft_strlcat.c b/c03/ex05/ft_strlcat.c index 1e7f9dc..ae84e43 100644 --- a/c03/ex05/ft_strlcat.c +++ b/c03/ex05/ft_strlcat.c @@ -31,7 +31,7 @@ unsigned int ft_strlcat(char *dest, char *src, unsigned int size) if (size == 0) return (src_len); i = dest_len; - while (i < size - 1 && src[i - dest_len]) + while (i < size - 1) { dest[i] = src[i - dest_len]; i++; -- cgit