norm: fixed all the norme issues in the perform_color_checks() function

This commit is contained in:
Theo Champion 2025-07-22 12:12:07 +02:00
parent c495547a70
commit 4b2f671107

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */ /* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/06/21 19:35:43 by tchampio #+# #+# */ /* Created: 2025/06/21 19:35:43 by tchampio #+# #+# */
/* Updated: 2025/07/21 15:28:36 by kcolin ### ########.fr */ /* Updated: 2025/07/22 12:11:28 by tchampio ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -23,7 +23,8 @@ bool perform_color_checks(int *color, char *strcolor, t_mapdata *map)
{ {
if (!ft_isdigit(strcolor[i])) if (!ft_isdigit(strcolor[i]))
{ {
ft_strlcpy(map->error, "invalid characters in color definition", 1024); ft_strlcpy(map->error, "invalid characters in color definition",
1024);
return (false); return (false);
} }
i++; i++;