summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-07-13 13:32:19 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2010-07-13 21:17:16 +0400
commitc6360a757b8c4284e416aa8025352045cffbf743 (patch)
tree8fd9557aee1723e88585d39de4c792dd7c18c5f9
parent15bdc51187d32b8dd34e7809bc6944ff4778d1bb (diff)
downloadnasm-c6360a757b8c4284e416aa8025352045cffbf743.tar.gz
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 <gorcunov@gmail.com>
-rw-r--r--preproc.c2
1 files changed, 1 insertions, 1 deletions
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;