diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-03 19:24:54 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-03 19:24:54 +0200 |
commit | be81297dfc28503f7c1014aad4efcf52bd13aad1 (patch) | |
tree | 83fa07a0afac9752473dd2e76c40df46c02efe59 /src/p_args_next.c | |
parent | In progress (diff) | |
download | 42-minishell-be81297dfc28503f7c1014aad4efcf52bd13aad1.tar.gz 42-minishell-be81297dfc28503f7c1014aad4efcf52bd13aad1.tar.bz2 42-minishell-be81297dfc28503f7c1014aad4efcf52bd13aad1.tar.xz 42-minishell-be81297dfc28503f7c1014aad4efcf52bd13aad1.tar.zst 42-minishell-be81297dfc28503f7c1014aad4efcf52bd13aad1.zip |
am good
Diffstat (limited to '')
-rw-r--r-- | src/p_args_next.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/p_args_next.c b/src/p_args_next.c index 4d7f979..36f6bf1 100644 --- a/src/p_args_next.c +++ b/src/p_args_next.c @@ -56,7 +56,8 @@ static size_t } else if (word[end] == C_SQUOTE || word[end] == C_DQUOTE) { - end = p_skip_delim_size(word, word[end], end); + while (word[end] != C_NULL && ft_iswhitespace(word[end]) == FALSE) + end = p_skip_delim_size(word, word[end], end); } return (end); } |