aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_parse_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r--src/ft_parse_map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c
index 3014900..a2c3b82 100644
--- a/src/ft_parse_map.c
+++ b/src/ft_parse_map.c
@@ -34,7 +34,7 @@ static void
i = 0;
while (words[i])
i++;
- if (ft_strcmp(words[i - 1], "cub"))
+ if (ft_strncmp(words[i - 1], "cub", 3))
{
ft_dprintf(STDERR_FILENO, "Error\n");
ft_dprintf(STDERR_FILENO, "\033[31;1mMap is not a .cub\033[0m\n");