diff options
author | Kevin Buettner <kevinb@redhat.com> | 2002-01-23 06:24:20 +0000 |
---|---|---|
committer | Kevin Buettner <kevinb@redhat.com> | 2002-01-23 06:24:20 +0000 |
commit | c26799df967e3c98c31d595ed81bc343f19fd549 (patch) | |
tree | e8443e1ae4fb4aef523131fa7975aacd13c6c0f0 /gdb/solib-sunos.c | |
parent | 07732e6b38008295374780ad44a0d15825ce44a1 (diff) | |
download | gdb-c26799df967e3c98c31d595ed81bc343f19fd549.tar.gz |
Fix xcalloc() calls so order of arguments is not reversed.
Diffstat (limited to 'gdb/solib-sunos.c')
-rw-r--r-- | gdb/solib-sunos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c index 304657c52ea..0f81d05efa4 100644 --- a/gdb/solib-sunos.c +++ b/gdb/solib-sunos.c @@ -728,8 +728,8 @@ sunos_relocate_main_executable (void) displacement = pc - bfd_get_start_address (exec_bfd); changed = 0; - new_offsets = xcalloc (sizeof (struct section_offsets), - symfile_objfile->num_sections); + new_offsets = xcalloc (symfile_objfile->num_sections, + sizeof (struct section_offsets)); old_chain = make_cleanup (xfree, new_offsets); for (i = 0; i < symfile_objfile->num_sections; i++) |