summaryrefslogtreecommitdiffstats
path: root/src/b_type.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/b_type.c')
-rw-r--r--src/b_type.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/b_type.c b/src/b_type.c
index 5904742..789071f 100644
--- a/src/b_type.c
+++ b/src/b_type.c
@@ -47,7 +47,7 @@ static char b_absolute_path_exists(char com[])
static void b_type_get_path(char fullpath[], char com[], t_msh *msh)
{
- if (ft_ischarset("/.", com[0]) == TRUE)
+ if (ft_strchr(com, '/') != NULL)
{
if (b_absolute_path_exists(com))
{