Commit-ID: 7cc90badae553a5ae25c3d93b75b024c73e2c7f4
Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=7cc90badae553a5ae25c3d93b75b024c73e2c7f4
Author: Cyrill Gorcunov <gor...@gm...>
AuthorDate: Sat, 20 Dec 2014 15:07:39 +0300
Committer: Cyrill Gorcunov <gor...@gm...>
CommitDate: Sat, 20 Dec 2014 15:07:39 +0300
quote: Fix returning out of string pointer, take 2
In commit a45febd767 only part of problem has been covered.
Need to be ready for strings like
| `a
http://bugzilla.nasm.us/show_bug.cgi?id=3392295
Reported-by: Hanno Boeck <ha...@hb...>
Signed-off-by: Cyrill Gorcunov <gor...@gm...>
---
quote.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/quote.c b/quote.c
index b1e9dba..0132b05 100644
--- a/quote.c
+++ b/quote.c
@@ -471,7 +471,7 @@ char *nasm_skip_string(char *str)
break;
}
}
- return p; /* Unterminated string... */
+ return p-1; /* Unterminated string... */
} else {
return str; /* Not a string... */
}
|