diff options
Diffstat (limited to 'gdb/mdebugread.c')
-rw-r--r-- | gdb/mdebugread.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c index 7be8080..629fa9a 100644 --- a/gdb/mdebugread.c +++ b/gdb/mdebugread.c @@ -2707,8 +2707,10 @@ parse_partial_symbols (struct objfile *objfile) && stabstring != debug_info->ss + fh->issBase + sh.iss) stabstring = xrealloc (stabstring, len + len2 + 1); else - stabstring = xmalloc (len + len2 + 1); - strcpy (stabstring, stabstring1); + { + stabstring = xmalloc (len + len2 + 1); + strcpy (stabstring, stabstring1); + } strcpy (stabstring + len, stabstring2); len += len2; } |