* dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated

size.
This commit is contained in:
Daniel Jacobowitz 2004-11-09 19:51:44 +00:00
parent e6dc21b695
commit d10891d454
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-11-09 Daniel Jacobowitz <dan@debian.org>
* dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Correct allocated
size.
2004-11-09 Andrew Cagney <cagney@gnu.org>
* TODO: Delete.

View File

@ -162,7 +162,7 @@ dwarf2_frame_state_alloc_regs (struct dwarf2_frame_state_reg_info *rs,
static struct dwarf2_frame_state_reg *
dwarf2_frame_state_copy_regs (struct dwarf2_frame_state_reg_info *rs)
{
size_t size = rs->num_regs * sizeof (struct dwarf2_frame_state_reg_info);
size_t size = rs->num_regs * sizeof (struct dwarf2_frame_state_reg);
struct dwarf2_frame_state_reg *reg;
reg = (struct dwarf2_frame_state_reg *) xmalloc (size);