diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_m_loop.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ft_m_loop.c b/src/ft_m_loop.c index 6e649b6..0b590a0 100644 --- a/src/ft_m_loop.c +++ b/src/ft_m_loop.c @@ -52,11 +52,11 @@ void ft_m_loop_cont(t_msh *msh, char *line, char *quote, - int8_t gnl) + int8_t gnl) { - char *prog; - char *buf; - char *fin; + char *prog; + char *buf; + char *fin; if (!(prog = ft_calloc(ft_strlen(line) + 1, sizeof(char))) || !(buf = ft_strdup(line + (quote - line) + 1))) @@ -72,9 +72,9 @@ void } fin = ft_strtrim(buf, "\"'"); ft_memdel((void*)&buf); + fin = (ft_strrchr(fin, '\'')) ? ft_strsubst(fin, "\'", "") : fin; fin = ft_strjoin_m(prog, fin, 1); ft_p_line(fin, msh); - ft_printf("fin : %s\n", fin); ft_memdel((void*)&prog); ft_memdel((void*)&fin); ft_e_lcom(msh); |