summaryrefslogtreecommitdiffstats
path: root/src/ft_e_lcom.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_e_lcom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c
index a23b32c..6b01dc4 100644
--- a/src/ft_e_lcom.c
+++ b/src/ft_e_lcom.c
@@ -22,7 +22,8 @@ static uint8_t
uint8_t i;
i = 0;
- while (msh->bu_ref[i] && ft_strncmp(com, msh->bu_ref[i], 7) != 0)
+ while (msh->bu_ref[i] && ft_strncmp(com, msh->bu_ref[i],
+ ft_strlen(msh->bu_ref[i]) + 1) != 0)
{
i++;
}