diff options
Diffstat (limited to 'src/p_args_quotes.c')
-rw-r--r-- | src/p_args_quotes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/p_args_quotes.c b/src/p_args_quotes.c index 6ecbb90..e6fdd92 100644 --- a/src/p_args_quotes.c +++ b/src/p_args_quotes.c @@ -37,10 +37,10 @@ static void { if (ptr - word == 0) ft_memmove(word, word + 1, ft_strlen(word)); - else if (ptr - word == 1 && *(ptr - 1) == C_BACKSLASH) + else if (ptr - word == 1 && *(ptr - 1) == C_BS) ptr++; - else if (ptr - word > 1 && *(ptr - 1) == C_BACKSLASH && - *(ptr - 2) != C_BACKSLASH) + else if (ptr - word > 1 && *(ptr - 1) == C_BS && + *(ptr - 2) != C_BS) ptr++; else ft_memmove(word + (ptr - word), ptr + 1, ft_strlen(ptr + 1) + 1); |