From 4dea36519bb9fa48ac672de5a457994c81122552 Mon Sep 17 00:00:00 2001 From: gwojda Date: Tue, 7 Feb 2017 15:28:35 +0100 Subject: [PATCH] correction ptit bug touche suppr --- 42sh/src/line-editing/print_and_del.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/42sh/src/line-editing/print_and_del.c b/42sh/src/line-editing/print_and_del.c index 09f85fe5..8a83d184 100644 --- a/42sh/src/line-editing/print_and_del.c +++ b/42sh/src/line-editing/print_and_del.c @@ -6,7 +6,7 @@ /* By: gwojda +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/01/05 16:02:43 by gwojda #+# #+# */ -/* Updated: 2017/02/05 17:08:58 by gwojda ### ########.fr */ +/* Updated: 2017/02/07 15:27:48 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -83,7 +83,7 @@ void ft_del(void) tmp = POS; STR = ft_remove_imput(STR, tmp); - if (!(STR && POS < ft_strlen(STR + 1))) + if (!(STR && POS < ft_strlen(STR) + 1)) return ; if (POS) {