Browse Source

fix expend str

master
narnaud 3 years ago
parent
commit
eb971e6542
  1. 5
      utils_2.c

5
utils_2.c

@ -91,9 +91,8 @@ char *expend_str(t_datas *datas, char *line)
{ {
if (*line == '$') if (*line == '$')
tmp_i = replace_var(datas, &line, tmp, tmp_i); tmp_i = replace_var(datas, &line, tmp, tmp_i);
tmp[tmp_i] = *line; else
line++; tmp[tmp_i++] = *(line++);
tmp_i++;
} }
return (tmp); return (tmp);
} }

Loading…
Cancel
Save