forked from Imagelibrary/binutils-gdb
Approved by msynder@redhat.com
2002-01-23 Fred Fish <fnf@redhat.com> * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to stabstring on initial malloc. Reallocing will copy it for us, if necessary.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user