diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-04 14:44:55 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-04 14:44:55 +0200 |
commit | 647a984ac6b6e2629ad16d3892ad3c231e8e277a (patch) | |
tree | ea96eb4f73efa946f100f77538ad1149a8f2de05 /src/b_export_next.c | |
parent | New libft function strclen, bug fix (diff) | |
download | 42-minishell-647a984ac6b6e2629ad16d3892ad3c231e8e277a.tar.gz 42-minishell-647a984ac6b6e2629ad16d3892ad3c231e8e277a.tar.bz2 42-minishell-647a984ac6b6e2629ad16d3892ad3c231e8e277a.tar.xz 42-minishell-647a984ac6b6e2629ad16d3892ad3c231e8e277a.tar.zst 42-minishell-647a984ac6b6e2629ad16d3892ad3c231e8e277a.zip |
Huge bug fix
Diffstat (limited to 'src/b_export_next.c')
-rw-r--r-- | src/b_export_next.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/b_export_next.c b/src/b_export_next.c index 0c143b2..0a56968 100644 --- a/src/b_export_next.c +++ b/src/b_export_next.c @@ -51,7 +51,7 @@ static int64_t p_env = msh->envp; while (*p_env != NULL) { - if (ft_strncmp(varname, *p_env, ft_strlen(varname)) == 0) + if (ft_strncmp(varname, *p_env, ft_strclen(*p_env, '=')) == 0) { return (p_env - msh->envp); } |