diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-20 17:04:59 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-20 17:04:59 +0200 |
commit | 386c44e541af7aa1ba594d2f0a9665199b3dffb4 (patch) | |
tree | cf5ef3cfeca4348c76aa97ffa5c00849ef9ee24a /src/ft_s_init.c | |
parent | Good (diff) | |
download | 42-minishell-386c44e541af7aa1ba594d2f0a9665199b3dffb4.tar.gz 42-minishell-386c44e541af7aa1ba594d2f0a9665199b3dffb4.tar.bz2 42-minishell-386c44e541af7aa1ba594d2f0a9665199b3dffb4.tar.xz 42-minishell-386c44e541af7aa1ba594d2f0a9665199b3dffb4.tar.zst 42-minishell-386c44e541af7aa1ba594d2f0a9665199b3dffb4.zip |
Nice prompt
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); } |