From 76e56bbe177ffcf1ecc216511792a9035cf620bf Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sun, 9 Feb 2020 19:45:09 +0100 Subject: Better error management --- src/ft_parse_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_parse_map.c') 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"); -- cgit v1.2.3