diff --git a/srcs/srcs_asm/convert/convert.c b/srcs/srcs_asm/convert/convert.c index e21ac5c..8aad054 100644 --- a/srcs/srcs_asm/convert/convert.c +++ b/srcs/srcs_asm/convert/convert.c @@ -3,10 +3,10 @@ /* ::: :::::::: */ /* convert.c :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: mdchane +#+ +:+ +#+ */ +/* By: jfleury +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/08 11:56:22 by mdchane #+# #+# */ -/* Updated: 2019/07/16 12:45:37 by mdchane ### ########.fr */ +/* Updated: 2019/07/17 12:37:24 by jfleury ### ########.fr */ /* */ /* ************************************************************************** */ @@ -24,7 +24,7 @@ static int ft_create_file(char **argv, unsigned char *buffer, int len) return (0); str[len_argv - 2] = 0; i = 0; - while (argv[1][i] != '.') + while (argv[1][i] != '.' || argv[1][i + 1] != 's') { str[i] = argv[1][i]; i++;