summaryrefslogtreecommitdiffstats
path: root/src/u_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/u_utils.c')
-rw-r--r--src/u_utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/u_utils.c b/src/u_utils.c
index a485fb3..5e31060 100644
--- a/src/u_utils.c
+++ b/src/u_utils.c
@@ -27,14 +27,14 @@ char
while (msh->envp[i] != NULL)
i++;
if ((vars = (char**)malloc((i + 1) * sizeof(char*))) == NULL)
- f_fail_alloc_and_destroy(msh);
+ f_alloc_and_destroy_msh(msh);
i = 0;
while (msh->envp[i] != NULL)
{
if ((vars[i] =
(char*)malloc((ft_strclen(msh->envp[i], '=') + 1)
* sizeof(char))) == NULL)
- f_fail_alloc_and_destroy(msh);
+ f_alloc_and_destroy_msh(msh);
ft_strlcpy(vars[i], msh->envp[i], ft_strclen(msh->envp[i], '=') + 1);
i++;
}