diff options
Diffstat (limited to 'src/p_args_len.c')
-rw-r--r-- | src/p_args_len.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/p_args_len.c b/src/p_args_len.c index e624b37..729e5c5 100644 --- a/src/p_args_len.c +++ b/src/p_args_len.c @@ -45,11 +45,11 @@ size_t mode = u_meet_dquote(word, ptr, mode); else if (*ptr == C_SQUOTE) mode = u_meet_squote(word, ptr, mode); - else if (ft_iswhitespace(*ptr)) + else if (ft_iswhitespace(*ptr) == TRUE) terminate = p_meet_whitespace(word, ptr, mode); ptr++; } - if (*ptr != C_NUL) + if (terminate == TRUE) ptr -= 1; return (ptr - word); } |