sstrdel leak
This commit is contained in:
parent
b7f1d82033
commit
d8c0807f12
2 changed files with 3 additions and 3 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jhalford@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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 */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue