aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/env.h2
-rw-r--r--src/env.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/include/env.h b/include/env.h
index 5a65333..0d0b696 100644
--- a/include/env.h
+++ b/include/env.h
@@ -10,6 +10,8 @@
/* */
/* ************************************************************************** */
+#include "libft.h"
+
typedef struct s_env
{
char *name;
diff --git a/src/env.c b/src/env.c
index 8105bf4..8b9d7ba 100644
--- a/src/env.c
+++ b/src/env.c
@@ -22,7 +22,7 @@ void getenvlst(t_env **env, char **en)
while (en[i] != NULL)
{
tmp = ft_strchr(en[i], '=');
- tmp = '\0';
+ *tmp = '\0';
current = *env;
current = malloc(sizeof(t_env));
current->name = ft_strdup(en[i]);