correcting increment error
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/04/04 18:29:06 by tmaze #+# #+# */
|
||||
/* Updated: 2018/04/10 19:07:13 by tmaze ### ########.fr */
|
||||
/* Updated: 2018/04/10 19:13:54 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -19,7 +19,7 @@ char *ft_strncat(char *restrict dest, const char *restrict src, size_t n)
|
||||
|
||||
dest_len = ft_strlen(dest);
|
||||
i = 0;
|
||||
while (++i < n && src[i])
|
||||
while (i < n && src[i])
|
||||
{
|
||||
dest[dest_len + i] = src[i];
|
||||
i++;
|
||||
|
Reference in New Issue
Block a user