diff options
Diffstat (limited to 'src/b_type.c')
-rw-r--r-- | src/b_type.c | 4 |
1 files 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) |