Merge branch 'master' of github.com:jzck/42sh
This commit is contained in:
commit
d033cdc847
1 changed files with 2 additions and 2 deletions
|
|
@ -89,10 +89,10 @@ int ft_del(char **str, size_t *pos)
|
|||
size_t tmp;
|
||||
|
||||
tmp = *pos;
|
||||
if (!(*str = ft_remove_imput(*str, tmp)))
|
||||
return (-1);
|
||||
if (!(*str && *pos < ft_strlen(*str) + 1))
|
||||
return (0);
|
||||
if (!(*str = ft_remove_imput(*str, tmp)))
|
||||
return (-1);
|
||||
if (*pos)
|
||||
{
|
||||
--(*pos);
|
||||
|
|
|
|||
Loading…
Reference in a new issue