diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-21 19:41:43 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-21 19:41:43 +0200 |
commit | 1e4fdf3068b1c9142793fae53a0c75a25b44d1cb (patch) | |
tree | 5d9a4bfa750ae231cb412c75b6d55e7dd1ea98e2 /libft/src/get_next_line.c | |
parent | Updated todolist (diff) | |
download | 42-minishell-1e4fdf3068b1c9142793fae53a0c75a25b44d1cb.tar.gz 42-minishell-1e4fdf3068b1c9142793fae53a0c75a25b44d1cb.tar.bz2 42-minishell-1e4fdf3068b1c9142793fae53a0c75a25b44d1cb.tar.xz 42-minishell-1e4fdf3068b1c9142793fae53a0c75a25b44d1cb.tar.zst 42-minishell-1e4fdf3068b1c9142793fae53a0c75a25b44d1cb.zip |
Cool
Diffstat (limited to 'libft/src/get_next_line.c')
-rw-r--r-- | libft/src/get_next_line.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libft/src/get_next_line.c b/libft/src/get_next_line.c index ae64125..2b2ba80 100644 --- a/libft/src/get_next_line.c +++ b/libft/src/get_next_line.c @@ -36,7 +36,7 @@ static char while (++j < size2) dst[i + j] = s2[j]; dst[i + j] = '\0'; - ft_memdel((void**)&s1); + ft_memdel((void*)&s1); return (dst); } @@ -56,7 +56,7 @@ static int { *line = ft_strjoin_gnl(*line, buf); if ((size = read(fd, buf, BUFFER_SIZE)) == -1) - ft_memdel((void**)&buf); + ft_memdel((void*)&buf); if (size == -1) return (-1); buf[size] = 0; @@ -64,7 +64,7 @@ static int *line = ft_strjoin_gnl(*line, buf); if (end) curr->rest = ft_swap_gnl(end + 1, curr->rest); - ft_memdel((void**)&buf); + ft_memdel((void*)&buf); if (!end) return (0); return (size); |