Skip to content

Commit

Permalink
Merge pull request #12 from Ofacy/filename-expand
Browse files Browse the repository at this point in the history
Fix SegFault
  • Loading branch information
Ofacy authored Apr 3, 2024
2 parents 6d3ba14 + 519a662 commit daffaaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions srcs/expander/expander_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: bwisniew <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/03 13:50:42 by bwisniew #+# #+# */
/* Updated: 2024/04/03 18:26:42 by bwisniew ### ########.fr */
/* Updated: 2024/04/03 19:17:15 by bwisniew ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -71,7 +71,7 @@ int expand_file(t_mshell *sh, size_t token_i)
token_i++;
}
if (expander(sh, i_cp + 1, expander_skip_file(&sh->tokens,
i_cp, sh->tokens.len) + 1) < 0)
i_cp, sh->tokens.len)) < 0)
return (1);
return (0);
}

0 comments on commit daffaaf

Please sign in to comment.