diff --git a/42sh/libft/src/sstr/ft_sstrdel.c b/42sh/libft/src/sstr/ft_sstrdel.c index fd044783..6d92c8ea 100644 --- a/42sh/libft/src/sstr/ft_sstrdel.c +++ b/42sh/libft/src/sstr/ft_sstrdel.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/03 18:04:07 by jhalford #+# #+# */ -/* Updated: 2017/03/21 17:52:10 by jhalford ### ########.fr */ +/* Updated: 2017/03/23 18:07:14 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ @@ -17,10 +17,10 @@ void ft_sstrdel(char **sstr, int index) int i; i = index; + ft_strdel(sstr + index); while (sstr[i]) { sstr[i] = sstr[i + 1]; i++; } - ft_strdel(sstr + index); } diff --git a/42sh/src/builtin/builtin_unsetenv.c b/42sh/src/builtin/builtin_unsetenv.c index 2cc3b9c7..80999e09 100644 --- a/42sh/src/builtin/builtin_unsetenv.c +++ b/42sh/src/builtin/builtin_unsetenv.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/28 14:29:17 by jhalford #+# #+# */ -/* Updated: 2017/03/21 17:51:37 by jhalford ### ########.fr */ +/* Updated: 2017/03/23 18:06:47 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */