diff options
Diffstat (limited to 'gas/macro.c')
-rw-r--r-- | gas/macro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gas/macro.c b/gas/macro.c index 08424317c4..3f2aaf6118 100644 --- a/gas/macro.c +++ b/gas/macro.c @@ -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++]); |