summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-01 21:43:03 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-01 21:43:03 -0700
commit427cc912f806435c52f205e805088a74b6c04afc (patch)
treeca4edef5414887878c446c42e33d6b02878fd825
parent6ecc159a54c643a46c5682fd9245601c252924f5 (diff)
downloadnasm-427cc912f806435c52f205e805088a74b6c04afc.tar.gz
qstring: fix unquoting in %pathsearch directive
%pathsearch unquoting should be done on the "t" token, not on the "tline" token...
-rw-r--r--preproc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/preproc.c b/preproc.c
index 3a338584..ac289ca3 100644
--- a/preproc.c
+++ b/preproc.c
@@ -2679,8 +2679,8 @@ static int do_directive(Token * tline)
if (t->next)
error(ERR_WARNING,
"trailing garbage after `%%pathsearch' ignored");
- p = tline->text;
- if (tline->type != TOK_INTERNAL_STRING)
+ p = t->text;
+ if (t->type != TOK_INTERNAL_STRING)
nasm_unquote(p);
fp = inc_fopen(p, &xsl, &xsl, true);