modif sortie dans le fichier
This commit is contained in:
parent
dee6d95cc6
commit
809d5d4ef7
@ -3,10 +3,10 @@
|
||||
/* ::: :::::::: */
|
||||
/* convert.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: mdchane <mdchane@student.42.fr> +#+ +:+ +#+ */
|
||||
/* By: jfleury <jfleury@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user