aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-09 19:45:09 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-09 19:45:09 +0100
commit76e56bbe177ffcf1ecc216511792a9035cf620bf (patch)
treea3628a25e38120afb2736b4e042ce7ebde391f0d /src
parentme dumb (diff)
download42-cub3d-76e56bbe177ffcf1ecc216511792a9035cf620bf.tar.gz
42-cub3d-76e56bbe177ffcf1ecc216511792a9035cf620bf.tar.bz2
42-cub3d-76e56bbe177ffcf1ecc216511792a9035cf620bf.tar.xz
42-cub3d-76e56bbe177ffcf1ecc216511792a9035cf620bf.tar.zst
42-cub3d-76e56bbe177ffcf1ecc216511792a9035cf620bf.zip
Better error management
Diffstat (limited to 'src')
-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");