fix: infile

This commit is contained in:
Camille Chauvet 2023-02-23 18:05:21 +01:00
parent 0327d0f5d7
commit 57be71a168

View File

@ -87,7 +87,7 @@ static int ft_remove_infile(char *line)
{
if (tab[i][0] == '<')
ft_strshift(line + y,
-1 * (ft_strlen(tab[i]) + ft_strlen(tab[i + 1]) + 1));
-1 * (ft_strlen(tab[i]) + ft_strlen(tab[i + 1]) + 2));
else
y = y + ft_strlen(tab[i]) + (y != 0);
i++;