summaryrefslogtreecommitdiffstats
path: root/src/ft_s_init.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_s_init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ft_s_init.c b/src/ft_s_init.c
index 5de17c1..46dac90 100644
--- a/src/ft_s_init.c
+++ b/src/ft_s_init.c
@@ -19,7 +19,8 @@
#include "ft_s_init.h"
t_msh
- *ft_init_msh(char *envp[])
+ *ft_init_msh(const char *argv[],
+ char *envp[])
{
t_msh *msh;
@@ -27,7 +28,7 @@ t_msh
return (NULL);
if (!(msh->ps_one = ft_strdup(FT_PS_ONE)))
return (NULL);
- if (!(msh->shname = ft_strdup(FT_DEFAULT_SHNAME)))
+ if (!(msh->shname = ft_strdup(argv[0])))
return (NULL);
msh->cwd = NULL;
msh->cwd = getcwd(NULL, 0);