diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-06-01 09:19:40 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-06-01 09:19:40 +0000 |
commit | 2473a4a98206b481e178aa7ef555501b29b1fb0a (patch) | |
tree | 5bf593cbdf4d2fe7cf8cc267105d70f3f3d54e2c /gdb/dwarf2-frame.c | |
parent | 9e9617a51f0f04c099d8711aaf2b4f131071498f (diff) | |
download | gdb-2473a4a98206b481e178aa7ef555501b29b1fb0a.zip gdb-2473a4a98206b481e178aa7ef555501b29b1fb0a.tar.gz gdb-2473a4a98206b481e178aa7ef555501b29b1fb0a.tar.bz2 |
From Richard Henderson <rth@redhat.com>:
* dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
Diffstat (limited to 'gdb/dwarf2-frame.c')
-rw-r--r-- | gdb/dwarf2-frame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index 2b35dd7..7694218 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -163,7 +163,7 @@ dwarf2_frame_state_alloc_regs (struct dwarf2_frame_state_reg_info *rs, xrealloc (rs->reg, num_regs * size); /* Initialize newly allocated registers. */ - memset (rs->reg + rs->num_regs * size, 0, (num_regs - rs->num_regs) * size); + memset (rs->reg + rs->num_regs, 0, (num_regs - rs->num_regs) * size); rs->num_regs = num_regs; } |