diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-06 17:56:59 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-06 17:56:59 +0200 |
commit | ab69117ff18f8b4a2b13adeada00cabd7d997855 (patch) | |
tree | da037207d06d1bb53bd059504ab98c810450ae07 /src/u_utils.c | |
parent | I'm lost (diff) | |
download | 42-minishell-ab69117ff18f8b4a2b13adeada00cabd7d997855.tar.gz 42-minishell-ab69117ff18f8b4a2b13adeada00cabd7d997855.tar.bz2 42-minishell-ab69117ff18f8b4a2b13adeada00cabd7d997855.tar.xz 42-minishell-ab69117ff18f8b4a2b13adeada00cabd7d997855.tar.zst 42-minishell-ab69117ff18f8b4a2b13adeada00cabd7d997855.zip |
Better defines
Diffstat (limited to '')
-rw-r--r-- | src/u_utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/u_utils.c b/src/u_utils.c index fb1dcf6..7f75c4d 100644 --- a/src/u_utils.c +++ b/src/u_utils.c @@ -23,8 +23,8 @@ t_bool u_is_not_escaped(char *head, char *ptr) { if (((ptr - head) == 0) || - ((ptr - head) >= 1 && *(ptr - 1) != C_BS) || - ((ptr - head) > 1 && *(ptr - 1) == C_BS && *(ptr - 2) == C_BS)) + ((ptr - head) >= 1 && *(ptr - 1) != C_BACKS) || + ((ptr - head) > 1 && *(ptr - 1) == C_BACKS && *(ptr - 2) == C_BACKS)) return (TRUE); return (FALSE); } |