Skip to content

Commit

Permalink
Fix envp uninitialized values and invalid write
Browse files Browse the repository at this point in the history
  • Loading branch information
Ofacy committed Apr 3, 2024
1 parent e9e10df commit 7428145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srcs/env_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: bwisniew <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/10 20:53:51 by lcottet #+# #+# */
/* Updated: 2024/03/19 18:53:58 by bwisniew ### ########.fr */
/* Updated: 2024/04/04 00:15:10 by lcottet ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -62,7 +62,7 @@ char **env_to_envp(t_vector *env)
return (NULL);
i++;
}
envp[i] = NULL;
envp[envp_len] = NULL;
return (envp);
}

Expand Down

0 comments on commit 7428145

Please sign in to comment.