This commit is contained in:
Jeremy FLEURY 2019-07-17 14:17:15 +02:00
parent 1785bdc6ec
commit 89efc78f22

View File

@ -6,7 +6,7 @@
/* By: jfleury <jfleury@student.42.fr> +#+ +:+ +#+ */ /* By: jfleury <jfleury@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/08 11:56:22 by mdchane #+# #+# */ /* Created: 2019/07/08 11:56:22 by mdchane #+# #+# */
/* Updated: 2019/07/17 12:37:24 by jfleury ### ########.fr */ /* Updated: 2019/07/17 14:07:38 by jfleury ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -24,7 +24,7 @@ static int ft_create_file(char **argv, unsigned char *buffer, int len)
return (0); return (0);
str[len_argv - 2] = 0; str[len_argv - 2] = 0;
i = 0; i = 0;
while (argv[1][i] != '.' || argv[1][i + 1] != 's') while (argv[1][i] != '.' || argv[1][i + 1] != 's' || argv[1][i + 2] != 0)
{ {
str[i] = argv[1][i]; str[i] = argv[1][i];
i++; i++;