fix invalid read completion + del
This commit is contained in:
parent
84cf427c3e
commit
5520f82c39
1 changed files with 1 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ int ft_del(char **str, size_t *pos)
|
||||||
size_t tmp;
|
size_t tmp;
|
||||||
|
|
||||||
tmp = *pos;
|
tmp = *pos;
|
||||||
if (!(*str && *pos < ft_strlen(*str) + 1))
|
if (!(*str && *pos < ft_strlen(*str)))
|
||||||
return (0);
|
return (0);
|
||||||
if (!(*str = ft_remove_imput(*str, tmp)))
|
if (!(*str = ft_remove_imput(*str, tmp)))
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue