From 21e2fd04a181a4a22b1118a66f387ea27b8f46e1 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Wed, 30 Sep 2020 18:17:08 +0200 Subject: Normed b_type --- src/b_type.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/b_type.c b/src/b_type.c index e0ae270..5566d3d 100644 --- a/src/b_type.c +++ b/src/b_type.c @@ -105,8 +105,8 @@ 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