From 5fa1b1f47a86512e4e238540342d294c83df2dfe Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 8 Nov 2010 08:36:36 -0800 Subject: [PATCH] preproc.c: use nasm_strdup() rather than naked strdup() --- preproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preproc.c b/preproc.c index c223fb72..8c53cfa8 100644 --- a/preproc.c +++ b/preproc.c @@ -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; -- 2.11.4.GIT