From 0c82bdaf4f35d6e5b7fdcfb4d1d26c506d933cf8 Mon Sep 17 00:00:00 2001 From: joe Date: Mon, 30 Nov 2020 12:19:13 +0100 Subject: Fix --- src/p_redirs.c | 2 +- src/p_subst_alias.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/p_redirs.c b/src/p_redirs.c index 6ea1e19..b1e6914 100644 --- a/src/p_redirs.c +++ b/src/p_redirs.c @@ -94,7 +94,7 @@ static int p_get_fd(const char word[], char *ptr) tmp = ptr; tmp -= 1; if (ft_isdigit(*tmp) == FALSE) - return (0); + return (1); while ((tmp - word) > 0 && ft_isdigit(*tmp) == TRUE) tmp--; if ((tmp - word) > 0 && ft_iswhitespace(*tmp) == FALSE) diff --git a/src/p_subst_alias.h b/src/p_subst_alias.h index 8d9f8d4..d15a993 100644 --- a/src/p_subst_alias.h +++ b/src/p_subst_alias.h @@ -20,11 +20,11 @@ struct s_subst_alias { - char value[ARG_MAX]; - char tmp[255]; - size_t locat[2]; t_msh *msh; + size_t locat[2]; size_t usedcmp; + char tmp[255]; + char value[ARG_MAX]; t_bool good; }; -- cgit v1.2.3