diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-03 14:56:25 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-03 14:56:25 +0200 |
commit | 9d230c959d27729a8162c0be75747d626bc035ad (patch) | |
tree | 381c6def1da640da7d9cad9160af0693d1bf7b4a | |
parent | Normed p_lblock_next (diff) | |
download | 42-minishell-9d230c959d27729a8162c0be75747d626bc035ad.tar.gz 42-minishell-9d230c959d27729a8162c0be75747d626bc035ad.tar.bz2 42-minishell-9d230c959d27729a8162c0be75747d626bc035ad.tar.xz 42-minishell-9d230c959d27729a8162c0be75747d626bc035ad.tar.zst 42-minishell-9d230c959d27729a8162c0be75747d626bc035ad.zip |
Update
-rw-r--r-- | src/p_lblock_next.c | 2 | ||||
-rw-r--r-- | src/p_lblock_next.h | 4 | ||||
-rw-r--r-- | src/s_com.c | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/p_lblock_next.c b/src/p_lblock_next.c index 485d4ee..bfdca3d 100644 --- a/src/p_lblock_next.c +++ b/src/p_lblock_next.c @@ -75,7 +75,7 @@ static void p_add_to_env_fork(int64_t i, char *words[], t_msh *msh) int64_t j; j = 0; - while(j < i) + while (j < i) { ft_strlcpy(msh->env_fork_tmp[j], words[j], ft_strlen(words[j]) + 1); j++; diff --git a/src/p_lblock_next.h b/src/p_lblock_next.h index 5ee27ed..7042060 100644 --- a/src/p_lblock_next.h +++ b/src/p_lblock_next.h @@ -10,8 +10,8 @@ /* */ /* ************************************************************************** */ -#ifndef FT_P_LCOM_NEXT_H -# define FT_P_LCOM_NEXT_H +#ifndef FT_P_LBLOCK_NEXT_H +# define FT_P_LBLOCK_NEXT_H # include <libft.h> # include <stdint.h> diff --git a/src/s_com.c b/src/s_com.c index 9dc8309..d304675 100644 --- a/src/s_com.c +++ b/src/s_com.c @@ -26,10 +26,13 @@ #include "s_lredir.h" #include "s_struct.h" +/* +** TODO: norme +*/ + static int8_t s_fill_com(char *words[], t_com **com) { - /* TODO: norme */ uint64_t i; uint64_t j; |