From daeae8bb0f9de0dd74eb63304cef2bdbb543ccb5 Mon Sep 17 00:00:00 2001 From: Tanguy MAZE Date: Tue, 19 Mar 2019 13:10:28 +0100 Subject: [PATCH] i really did the thing =) corrected ft_getline --- ft_getline.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ft_getline.c b/ft_getline.c index be435a2..c3b7d8c 100644 --- a/ft_getline.c +++ b/ft_getline.c @@ -6,7 +6,7 @@ /* By: tmaze +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/03/07 15:12:59 by tmaze #+# #+# */ -/* Updated: 2019/03/18 17:05:55 by tmaze ### ########.fr */ +/* Updated: 2019/03/19 13:08:37 by tmaze ### ########.fr */ /* */ /* ************************************************************************** */ @@ -19,7 +19,7 @@ static int get_last_ind(char *buff) i = 0; while (buff[i] && buff[i] != '\n') i++; - return (0); + return (i); } static int flush_buff(char **line, char *buff)