diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-08-06 18:19:11 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-08-06 18:19:11 +0200 |
| commit | c6d343fccb84e9fc89dfc75b3f35a352e97b14a4 (patch) | |
| tree | 5cde66a3b489c7882b6d7ba062df5a70dbaf0666 /c03/ex05 | |
| parent | 056a88ee9c2c9e26f9712d14c645e367d851f394 (diff) | |
| download | piscine-c6d343fccb84e9fc89dfc75b3f35a352e97b14a4.tar.gz piscine-c6d343fccb84e9fc89dfc75b3f35a352e97b14a4.tar.bz2 piscine-c6d343fccb84e9fc89dfc75b3f35a352e97b14a4.zip | |
details, print_memory start
- copied c09 correct ft_split to c07
- strdup parenthesis in malloc
- strlcat copied from tested libft
Diffstat (limited to 'c03/ex05')
| -rw-r--r-- | c03/ex05/ft_strlcat.c | 2 |
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++; |
