From 5cedd8ac7f6177090487c3e3d937d830de12686f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl?= <35407363+EniumRaphael@users.noreply.github.com> Date: Sat, 2 Dec 2023 07:10:19 +0100 Subject: [PATCH] Update ft_strlcat.c --- ft_strlcat.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ft_strlcat.c b/ft_strlcat.c index 77658ad..5ef6701 100644 --- a/ft_strlcat.c +++ b/ft_strlcat.c @@ -17,12 +17,8 @@ static size_t ft_strnlen(char *dest, size_t size) size_t i; i = 0; - while (i < size) - { - if (dest[i] == '\0') - break ; + while (i < size && dest[i] != '\0') i++; - } return (i); }