mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-31 18:20:22 +08:00
preproc.c: use nasm_strdup() rather than naked strdup()
This commit is contained in:
parent
9858cecf02
commit
5fa1b1f47a
@ -1253,7 +1253,7 @@ static Token *copy_Token(Token * tline)
|
||||
t = freeTokens;
|
||||
freeTokens = t->next;
|
||||
t->next = NULL;
|
||||
t->text = ((tt->text != NULL) ? strdup(tt->text) : NULL);
|
||||
t->text = tt->text ? nasm_strdup(tt->text) : NULL;
|
||||
t->a.mac = tt->a.mac;
|
||||
t->a.len = tt->a.len;
|
||||
t->type = tt->type;
|
||||
|
Loading…
x
Reference in New Issue
Block a user