summaryrefslogtreecommitdiffstats
path: root/src/b_type.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:17:08 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:17:08 +0200
commit21e2fd04a181a4a22b1118a66f387ea27b8f46e1 (patch)
treef25ddcae79934ed4be1f4ac21eb2052dd4cd7009 /src/b_type.c
parentNormed b_type (diff)
download42-minishell-21e2fd04a181a4a22b1118a66f387ea27b8f46e1.tar.gz
42-minishell-21e2fd04a181a4a22b1118a66f387ea27b8f46e1.tar.bz2
42-minishell-21e2fd04a181a4a22b1118a66f387ea27b8f46e1.tar.xz
42-minishell-21e2fd04a181a4a22b1118a66f387ea27b8f46e1.tar.zst
42-minishell-21e2fd04a181a4a22b1118a66f387ea27b8f46e1.zip
Normed b_type
Diffstat (limited to 'src/b_type.c')
-rw-r--r--src/b_type.c4
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)