aboutsummaryrefslogtreecommitdiff
path: root/c03/ex05/ft_strlcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'c03/ex05/ft_strlcat.c')
-rw-r--r--c03/ex05/ft_strlcat.c2
1 files changed, 1 insertions, 1 deletions
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++;