diff options
Diffstat (limited to 'src/ft_get_tex.c')
-rw-r--r-- | src/ft_get_tex.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/ft_get_tex.c b/src/ft_get_tex.c index 2611fef..f8a817c 100644 --- a/src/ft_get_tex.c +++ b/src/ft_get_tex.c @@ -27,13 +27,13 @@ int8_t ft_sprintf(clist->errmsg, "%s", FT_ERR_NOT_A_XPM); return (-1); } - ft_memdel((void**)&clist->mlist->no_tex_path); - if (!(clist->mlist->no_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist.no_tex_path); + if (!(clist->mlist.no_tex_path = ft_strdup(*(words + 1)))) { ft_sprintf(clist->errmsg, "%s", FT_ERR_ALLOCATE); return (-1); } - if (ft_check_not_found(clist->mlist->no_tex_path) < 0) + if (ft_check_not_found(clist->mlist.no_tex_path) < 0) { ft_sprintf(clist->errmsg, "%s", FT_ERR_RD_NO); return (-1); @@ -54,13 +54,13 @@ int8_t ft_sprintf(clist->errmsg, "%s", FT_ERR_NOT_A_XPM); return (-1); } - ft_memdel((void**)&clist->mlist->so_tex_path); - if (!(clist->mlist->so_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist.so_tex_path); + if (!(clist->mlist.so_tex_path = ft_strdup(*(words + 1)))) { ft_sprintf(clist->errmsg, "%s", FT_ERR_ALLOCATE); return (-1); } - if (ft_check_not_found(clist->mlist->so_tex_path) < 0) + if (ft_check_not_found(clist->mlist.so_tex_path) < 0) { ft_sprintf(clist->errmsg, "%s", FT_ERR_RD_SO); return (-1); @@ -81,13 +81,13 @@ int8_t ft_sprintf(clist->errmsg, "%s", FT_ERR_NOT_A_XPM); return (-1); } - ft_memdel((void**)&clist->mlist->ea_tex_path); - if (!(clist->mlist->ea_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist.ea_tex_path); + if (!(clist->mlist.ea_tex_path = ft_strdup(*(words + 1)))) { ft_sprintf(clist->errmsg, "%s", FT_ERR_ALLOCATE); return (-1); } - if (ft_check_not_found(clist->mlist->ea_tex_path) < 0) + if (ft_check_not_found(clist->mlist.ea_tex_path) < 0) { ft_sprintf(clist->errmsg, "%s", FT_ERR_RD_EA); return (-1); @@ -108,13 +108,13 @@ int8_t ft_sprintf(clist->errmsg, "%s", FT_ERR_NOT_A_XPM); return (-1); } - ft_memdel((void**)&clist->mlist->we_tex_path); - if (!(clist->mlist->we_tex_path = ft_strdup(*(words + 1)))) + ft_memdel((void**)&clist->mlist.we_tex_path); + if (!(clist->mlist.we_tex_path = ft_strdup(*(words + 1)))) { ft_sprintf(clist->errmsg, "%s", FT_ERR_ALLOCATE); return (-1); } - if (ft_check_not_found(clist->mlist->we_tex_path) < 0) + if (ft_check_not_found(clist->mlist.we_tex_path) < 0) { ft_sprintf(clist->errmsg, "%s", FT_ERR_RD_WE); return (-1); |