* macro.c (get_any_string): Correct logic for not going beyond end
of in->ptr[].
This commit is contained in:
parent
daa3eaaf8c
commit
9df59bba97
|
@ -1,3 +1,8 @@
|
|||
2002-11-11 Hans-Peter Nilsson <hp@bitrange.com>
|
||||
|
||||
* macro.c (get_any_string): Correct logic for not going beyond end
|
||||
of in->ptr[].
|
||||
|
||||
2002-11-10 Hans-Peter Nilsson <hp@bitrange.com>
|
||||
|
||||
* config/tc-mmix.c (get_putget_operands): Mark both possible
|
||||
|
|
|
@ -366,7 +366,7 @@ get_any_string (idx, in, out, expand, pretend_quoted)
|
|||
|
||||
if (idx < in->len)
|
||||
{
|
||||
if (in->len > 2 && in->ptr[idx + 1] == '\'' && ISBASE (in->ptr[idx]))
|
||||
if (in->len > idx + 2 && in->ptr[idx + 1] == '\'' && ISBASE (in->ptr[idx]))
|
||||
{
|
||||
while (!ISSEP (in->ptr[idx]))
|
||||
sb_add_char (out, in->ptr[idx++]);
|
||||
|
|
Loading…
Reference in New Issue