summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_strlcpy.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/src/ft_strlcpy.c')
-rw-r--r--libft/src/ft_strlcpy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libft/src/ft_strlcpy.c b/libft/src/ft_strlcpy.c
index ed4d924..5076a69 100644
--- a/libft/src/ft_strlcpy.c
+++ b/libft/src/ft_strlcpy.c
@@ -16,9 +16,9 @@
size_t
ft_strlcpy(char *dst, const char *src, size_t size)
{
- size_t src_len;
+ size_t src_len;
- if (!dst || !src)
+ if (dst == NULL || src == NULL)
return (0);
src_len = ft_strlen(src);
if (src_len + 1 < size)