fix: infile
This commit is contained in:
parent
0327d0f5d7
commit
57be71a168
2
infile.c
2
infile.c
@ -87,7 +87,7 @@ static int ft_remove_infile(char *line)
|
|||||||
{
|
{
|
||||||
if (tab[i][0] == '<')
|
if (tab[i][0] == '<')
|
||||||
ft_strshift(line + y,
|
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
|
else
|
||||||
y = y + ft_strlen(tab[i]) + (y != 0);
|
y = y + ft_strlen(tab[i]) + (y != 0);
|
||||||
i++;
|
i++;
|
||||||
|
Loading…
Reference in New Issue
Block a user