From c6360a757b8c4284e416aa8025352045cffbf743 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Tue, 13 Jul 2010 13:32:19 +0400 Subject: [PATCH] tokenize: Fix wrong string index in indirect strings At moment of calling the nasm_skip_string the string pointer is already incremented which makes tokenize fail on correct indirect strings. Signed-off-by: Cyrill Gorcunov --- preproc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preproc.c b/preproc.c index be321f33..ef4f95c3 100644 --- a/preproc.c +++ b/preproc.c @@ -893,7 +893,7 @@ static Token *tokenize(char *line) case '\'': case '\"': case '`': - p = nasm_skip_string(p)+1; + p = nasm_skip_string(p - 1) + 1; break; default: break; -- 2.11.4.GIT