From 7a4ba34e7302b1b6c374d1c8cb649efc8ccd2ca6 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 30 Sep 2020 18:17:18 +0200 Subject: Normed b_type --- src/b_type.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/b_type.c b/src/b_type.c index 5566d3d..6a75f13 100644 --- a/src/b_type.c +++ b/src/b_type.c @@ -105,8 +105,7 @@ uint8_t b_type(char *args[], t_msh *msh) while (*ptr != NULL) { p_alias = msh->alias; - while (p_alias != NULL - && ft_strncmp(*ptr, p_alias->name, + while (p_alias != NULL && ft_strncmp(*ptr, p_alias->name, ft_strlen(p_alias->name) + 1) != 0) p_alias = p_alias->next; if (p_alias != NULL) -- cgit v1.2.3