From 51f892350a057e8c1259d273ab0dc55737dd9c5c Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Fri, 24 Feb 2023 15:51:12 +0100 Subject: [PATCH] fix: bug bizarre --- spacer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacer.c b/spacer.c index 8f0b24b..15ef492 100644 --- a/spacer.c +++ b/spacer.c @@ -30,7 +30,7 @@ static char *ft_spacer_after(const char *str) i++; if (ft_is_in("><|", out[i - 1])) { - while (str[i] == out[i - 1]) + while (out[i] == out[i - 1]) i++; temp = ft_strreplace(out, " ", i, i); free(out);