diff --git a/src/parser/wordlist/wordlist_utils.c b/src/parser/wordlist/wordlist_utils.c index 3669bcc..0c804f7 100644 --- a/src/parser/wordlist/wordlist_utils.c +++ b/src/parser/wordlist/wordlist_utils.c @@ -55,4 +55,4 @@ t_wordlist *wordlist_get_elem(t_wordlist *list, int idx) if (list == NULL) return (NULL); return (list); -} \ No newline at end of file +} diff --git a/src/subst/wildcard_exp.c b/src/subst/wildcard_exp.c index 30d6e35..2df04af 100644 --- a/src/subst/wildcard_exp.c +++ b/src/subst/wildcard_exp.c @@ -6,7 +6,7 @@ /* By: jguelen +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/02/23 15:02:59 by jguelen #+# #+# */ -/* Updated: 2025/03/10 17:08:25 by jguelen ### ########.fr */ +/* Updated: 2025/03/10 17:21:25 by jguelen ### ########.fr */ /* */ /* ************************************************************************** */ @@ -154,7 +154,7 @@ t_wordlist *expand_star(t_worddesc *file_pattern) tmp = replace_in_str(file_pattern->marker, i, i, NULL); free(file_pattern->marker); file_pattern->marker = tmp; - continue; + continue ; } i++; } diff --git a/src/subst/wildcard_exp_utils.c b/src/subst/wildcard_exp_utils.c index 7b68f93..aadb012 100644 --- a/src/subst/wildcard_exp_utils.c +++ b/src/subst/wildcard_exp_utils.c @@ -6,7 +6,7 @@ /* By: jguelen +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/03/07 17:10:01 by jguelen #+# #+# */ -/* Updated: 2025/03/10 15:36:11 by jguelen ### ########.fr */ +/* Updated: 2025/03/10 17:22:00 by jguelen ### ########.fr */ /* */ /* ************************************************************************** */ @@ -142,10 +142,9 @@ int ispattern(t_worddesc *desc) { if ((desc->word[i] == '*' || desc->word[i] == '?') && (desc->marker[i] != '\'' && desc->marker[i] != '"' - && desc->marker[i] != '&')) + && desc->marker[i] != '&')) return (1); i++; } return (0); } -