From 3976118a6e9acd035d20ef79d92632ecb962814e Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 5 Sep 2020 14:48:49 +0200 Subject: Rewrite in progress --- src/p_args_len.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/p_args_len.c') diff --git a/src/p_args_len.c b/src/p_args_len.c index 8bab9d7..c736a3a 100644 --- a/src/p_args_len.c +++ b/src/p_args_len.c @@ -26,7 +26,7 @@ static size_t end++; if (word[end] == c && c == C_DQUOTE) { - if (word[end - 1] == C_BACKSLASH && word[end - 2] != C_BACKSLASH) + if (word[end - 1] == C_BS && word[end - 2] != C_BS) { end++; } @@ -46,12 +46,12 @@ static size_t { end++; if (ft_iswhitespace(word[end]) == TRUE && end == 1 && - word[end - 1] == C_BACKSLASH) + word[end - 1] == C_BS) { end++; } else if (ft_iswhitespace(word[end]) == TRUE && end > 1 && - word[end - 1] == C_BACKSLASH && word[end - 2] != C_BACKSLASH) + word[end - 1] == C_BS && word[end - 2] != C_BS) { end++; } -- cgit v1.2.3