aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_select_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_select_get.c')
-rw-r--r--src/ft_select_get.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/ft_select_get.c b/src/ft_select_get.c
index 9d97748..ed569ff 100644
--- a/src/ft_select_get.c
+++ b/src/ft_select_get.c
@@ -62,18 +62,18 @@ static int8_t
int8_t ret;
char ref[12][3];
- ft_memcpy(ref[0], "R\0", 3);
- ft_memcpy(ref[1], "NO", 3);
- ft_memcpy(ref[2], "SO", 3);
- ft_memcpy(ref[3], "EA", 3);
- ft_memcpy(ref[4], "WE", 3);
- ft_memcpy(ref[5], "S\0", 3);
- ft_memcpy(ref[6], "F\0", 3);
- ft_memcpy(ref[7], "C\0", 3);
- ft_memcpy(ref[8], "L\0", 3);
- ft_memcpy(ref[9], "LT", 3);
- ft_memcpy(ref[9], "MU", 3);
- ft_memcpy(ref[11], "", 1);
+ ft_sprintf(ref[0], "R");
+ ft_sprintf(ref[1], "NO");
+ ft_sprintf(ref[2], "SO");
+ ft_sprintf(ref[3], "EA");
+ ft_sprintf(ref[4], "WE");
+ ft_sprintf(ref[5], "S");
+ ft_sprintf(ref[6], "F");
+ ft_sprintf(ref[7], "C");
+ ft_sprintf(ref[8], "L");
+ ft_sprintf(ref[9], "LT");
+ ft_sprintf(ref[10], "MU");
+ ft_sprintf(ref[11], "");
ret = 0;
while (ft_strncmp(words[0], ref[ret], 3) && ref[ret][0])
ret++;
@@ -94,7 +94,7 @@ int8_t
ft_free_words(words);
return (12);
}
- if (id < 0 || (*fun_ptr[id])(words, clist) < 0)
+ if (id < 0 || clist->get_ptr[id](words, clist) < 0)
{
ft_free_words(words);
return ((id < 0) ? (-2) : (-1));