diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-01 16:40:05 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-01 16:40:05 +0200 |
commit | 06217e697520e5c97393bc06b89fda073efa7ea6 (patch) | |
tree | 7f0c744900487395ffc36ed4185035876633bef3 /src/s_com.c | |
parent | Secured malloc (diff) | |
download | 42-minishell-06217e697520e5c97393bc06b89fda073efa7ea6.tar.gz 42-minishell-06217e697520e5c97393bc06b89fda073efa7ea6.tar.bz2 42-minishell-06217e697520e5c97393bc06b89fda073efa7ea6.tar.xz 42-minishell-06217e697520e5c97393bc06b89fda073efa7ea6.tar.zst 42-minishell-06217e697520e5c97393bc06b89fda073efa7ea6.zip |
Update
Diffstat (limited to 'src/s_com.c')
-rw-r--r-- | src/s_com.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/s_com.c b/src/s_com.c index 550616c..75a5040 100644 --- a/src/s_com.c +++ b/src/s_com.c @@ -14,6 +14,7 @@ #include <stdlib.h> #include "f_fail.h" +#include "p_args.h" #include "p_lcom.h" #include "p_lcom_next.h" #include "s_struct.h" @@ -113,7 +114,7 @@ t_com com->env_fork = NULL; if (get_redir(word, &com) != 0) return (NULL); - if ((words = p_subst_args(word, com->redir)) == NULL) + if ((words = p_split_args(word, com->redir)) == NULL) return (NULL); if ((words = p_subst_vars(words, msh)) == NULL) return (NULL); |