From 312445a3169f9e168d2bdbdda8ed13995c27e76b Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Sat, 14 Jun 2008 21:09:39 -0700 Subject: [PATCH] quote: fix termination condition for hexadecimal escapes Fix reversed test for hexadecimal escape sequence termination. --- quote.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quote.c b/quote.c index 5a04d36b..dc880442 100644 --- a/quote.c +++ b/quote.c @@ -319,7 +319,7 @@ size_t nasm_unquote(char *str, char **ep) (c >= 'A' && c <= 'F') || (c >= 'a' && c <= 'f')) { nval = (nval << 4) + numvalue(c); - if (--ndig) { + if (!--ndig) { *q++ = nval; state = st_start; } -- 2.11.4.GIT