correction bug

This commit is contained in:
gwojda 2017-03-14 15:00:31 +01:00
parent 9545cb5e00
commit 9ee6c10884

View file

@ -6,7 +6,7 @@
/* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */ /* By: gwojda <gwojda@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/14 11:27:03 by gwojda #+# #+# */ /* Created: 2017/02/14 11:27:03 by gwojda #+# #+# */
/* Updated: 2017/03/14 09:50:57 by gwojda ### ########.fr */ /* Updated: 2017/03/14 14:58:41 by gwojda ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -30,7 +30,7 @@ void ft_add_in_history_file(char *str)
return ; return ;
while (hist[i]) while (hist[i])
{ {
write(fd, hist[i], ft_strlen(str)); write(fd, hist[i], ft_strlen(hist[i]));
write(fd, "\n", 1); write(fd, "\n", 1);
++i; ++i;
} }