summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2014-12-20 15:07:39 +0300
committerCyrill Gorcunov <gorcunov@gmail.com>2014-12-20 15:07:39 +0300
commit7cc90badae553a5ae25c3d93b75b024c73e2c7f4 (patch)
tree33122fe11417677b1faeac84e87bc175906003e9
parent85ec505d05dfb987f8e0f728b1a350d6188739b0 (diff)
downloadnasm-7cc90badae553a5ae25c3d93b75b024c73e2c7f4.tar.gz
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 <hanno@hboeck.de> Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
-rw-r--r--quote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quote.c b/quote.c
index b1e9dbae..0132b057 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... */
}