diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 00:17:42 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-02 00:17:42 +0100 |
commit | 7f450e0664b7eb103358b0eeb0667033f7fead85 (patch) | |
tree | 024a02d21a47074344a2905280e5c4fd78c6eb8b /src/ft_get_path_nl.c | |
parent | Preparing music (diff) | |
download | 42-cub3d-7f450e0664b7eb103358b0eeb0667033f7fead85.tar.gz 42-cub3d-7f450e0664b7eb103358b0eeb0667033f7fead85.tar.bz2 42-cub3d-7f450e0664b7eb103358b0eeb0667033f7fead85.tar.xz 42-cub3d-7f450e0664b7eb103358b0eeb0667033f7fead85.tar.zst 42-cub3d-7f450e0664b7eb103358b0eeb0667033f7fead85.zip |
Another song
Diffstat (limited to 'src/ft_get_path_nl.c')
-rw-r--r-- | src/ft_get_path_nl.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_get_path_nl.c b/src/ft_get_path_nl.c index f826070..b14595f 100644 --- a/src/ft_get_path_nl.c +++ b/src/ft_get_path_nl.c @@ -19,23 +19,23 @@ 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 (ft_check_ext(*(words + 1), ".cub") < 0) { - ft_sprintf(clist->errmsg, "%s", FT_ERR_NOT_A_CUB); + ft_sprintf(clist->errmsg, FT_ERR_NOT_A_CUB); return (-1); } ft_memdel((void**)&clist->mlist->nlevel_path); if (!(clist->mlist->nlevel_path = ft_strdup(*(words + 1)))) { - ft_sprintf(clist->errmsg, "%s", FT_ERR_ALLOCATE); + ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE); return (-1); } if (ft_check_not_found(clist->mlist->nlevel_path) < 0) { - ft_sprintf(clist->errmsg, "%s", FT_ERR_RD_NL_MAP); + ft_sprintf(clist->errmsg, FT_ERR_RD_NL_MAP); return (-1); } return (0); |