summaryrefslogtreecommitdiffstats
path: root/src/p_args_next.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/p_args_next.c3
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);
}