diff options
Diffstat (limited to 'libft/src/ft_strlen.c')
-rw-r--r-- | libft/src/ft_strlen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libft/src/ft_strlen.c b/libft/src/ft_strlen.c index 90f5110..2b26bf0 100644 --- a/libft/src/ft_strlen.c +++ b/libft/src/ft_strlen.c @@ -18,7 +18,7 @@ size_t const char *ptr; ptr = s; - while (ptr && *ptr) + while (ptr != NULL && *ptr != '\0') ptr++; return (ptr - s); } |