diff options
| -rw-r--r-- | include/env.h | 2 | ||||
| -rw-r--r-- | src/env.c | 2 |
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; @@ -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]); |
