diff --git a/utils_2.c b/utils_2.c index 91282d0..23472eb 100644 --- a/utils_2.c +++ b/utils_2.c @@ -91,9 +91,8 @@ char *expend_str(t_datas *datas, char *line) { if (*line == '$') tmp_i = replace_var(datas, &line, tmp, tmp_i); - tmp[tmp_i] = *line; - line++; - tmp_i++; + else + tmp[tmp_i++] = *(line++); } return (tmp); }