aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_colors.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-02-29 00:29:17 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-02-29 00:29:17 +0100
commit4fccd597e3c5c97144e4324c1371db9f7f039967 (patch)
tree25cb40e9a022ca66fa038864b771e6b0fb15fc05 /src/ft_get_colors.c
parentAll works but one thing is not ok (diff)
download42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.tar.gz
42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.tar.bz2
42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.tar.xz
42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.tar.zst
42-cub3d-4fccd597e3c5c97144e4324c1371db9f7f039967.zip
Works fine, preparing small map
Diffstat (limited to 'src/ft_get_colors.c')
-rw-r--r--src/ft_get_colors.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ft_get_colors.c b/src/ft_get_colors.c
index 96be925..69eb8f8 100644
--- a/src/ft_get_colors.c
+++ b/src/ft_get_colors.c
@@ -30,7 +30,7 @@ static int8_t
if (i != ft_strlen(num[j]))
{
ft_free_words(num);
- ft_sprintf(clist->errmsg, "%s", FT_ERR_COLOR_ALPHA);
+ ft_sprintf(clist->errmsg, FT_ERR_COLOR_ALPHA);
return (-1);
}
i = 0;
@@ -45,7 +45,7 @@ static int8_t
if (ft_atoi(num[0]) > 255 || ft_atoi(num[1]) > 255
|| ft_atoi(num[2]) > 255)
{
- ft_sprintf(clist->errmsg, "%s", FT_ERR_COLOR_MAX);
+ ft_sprintf(clist->errmsg, FT_ERR_COLOR_MAX);
ft_free_words(num);
return (-1);
}
@@ -57,7 +57,7 @@ static int8_t
{
if (!num[0] || !num[1] || !num[2] || num[3])
{
- ft_sprintf(clist->errmsg, "%s", FT_ERR_COLOR_ARGS);
+ ft_sprintf(clist->errmsg, FT_ERR_COLOR_ARGS);
ft_free_words(num);
return (-1);
}
@@ -71,12 +71,12 @@ int8_t
if (!(*words) || !words[1] || words[2])
{
- ft_sprintf(clist->errmsg, "%s", FT_ERR_ARGS);
+ ft_sprintf(clist->errmsg, FT_ERR_ARGS);
return (-1);
}
if (!(num = ft_split(words[1], ',')))
{
- ft_sprintf(clist->errmsg, "%s", FT_ERR_ALLOCATE);
+ ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE);
return (-1);
}
if (ft_check_nums_amount(num, clist) < 0)
@@ -99,12 +99,12 @@ int8_t
if (!(*words) || !words[1] || words[2])
{
- ft_sprintf(clist->errmsg, "%s", FT_ERR_ARGS);
+ ft_sprintf(clist->errmsg, FT_ERR_ARGS);
return (-1);
}
if (!(num = ft_split(words[1], ',')))
{
- ft_sprintf(clist->errmsg, "%s", FT_ERR_ALLOCATE);
+ ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE);
return (-1);
}
if (ft_check_nums_amount(num, clist) < 0)