diff options
Diffstat (limited to 'src/ft_s_init.c')
-rw-r--r-- | src/ft_s_init.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ft_s_init.c b/src/ft_s_init.c index 0d27aa7..c4b2667 100644 --- a/src/ft_s_init.c +++ b/src/ft_s_init.c @@ -15,7 +15,7 @@ #include "ft_s_init.h" t_msh - *ft_init_msh(void) + *ft_init_msh(char *envp[]) { t_msh *msh; @@ -28,8 +28,9 @@ t_msh { return (NULL); } - ft_strlcpy(msh->ps_one, FT_PS_ONE, ft_strlen(FT_PS_ONE)); - msh->envp = NULL; + ft_strlcpy(msh->ps_one, FT_PS_ONE, ft_strlen(FT_PS_ONE) + 1); + msh->envp = envp; + msh->ret = 0; msh->lcom = NULL; return (msh); } |