fix: quote infinit loop

This commit is contained in:
Camille Chauvet
2023-02-16 13:53:49 +01:00
parent 8366b63821
commit 22b7a4feea
3 changed files with 11 additions and 14 deletions

View File

@ -6,7 +6,7 @@
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/15 14:12:00 by cchauvet #+# #+# */
/* Updated: 2023/02/15 17:59:50 by cchauvet ### ########.fr */
/* Updated: 2023/02/16 13:20:50 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
@ -37,7 +37,7 @@ char *ft_quote_remover(char *str)
if (start != -1)
{
ft_strshift(str, -1);
str[stop] = '\0';
ft_strshift(str + stop - 1, -1);
}
return (str);
}