fix: invalid read 'echo sfdsdfsd cchauvet'
This commit is contained in:
parent
46fe9caded
commit
8af6b42642
@ -6,7 +6,7 @@
|
||||
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/02/15 13:35:50 by cchauvet #+# #+# */
|
||||
/* Updated: 2023/03/30 16:01:56 by cchauvet ### ########.fr */
|
||||
/* Updated: 2023/03/31 15:22:21 by alouis-j ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -40,7 +40,7 @@ static char *ft_spacer_after(const char *str)
|
||||
{
|
||||
while (ft_is_in_quote(out, i - 1))
|
||||
i++;
|
||||
if (out[i] == '\0')
|
||||
if (out[i - 1] == '\0' || out[i] == '\0')
|
||||
break ;
|
||||
if (ft_is_in("><|", out[i - 1]))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user