tb Allow for only one consequent alias expansion

This commit is contained in:
2025-09-20 11:13:48 +02:00
parent 9694d1a5a0
commit 6cd4c73438
2 changed files with 3 additions and 3 deletions

View File

@ -36,9 +36,8 @@ bool rt_mkalias(Token *tks) {
while (tk) {
if (i == 0) {
usprintf(alias->namebuf, "%.*s", (int)tk->len, tk->ptr);
} else {
size_t off = string_len(alias->valbuf);
usprintf(alias->valbuf + off, "%.*s", (int)tk->len, tk->ptr);
} else if (i == 1) {
usprintf(alias->valbuf, "%.*s", (int)tk->len, tk->ptr);
}
i++;
tk = tk->next;