From c26799df967e3c98c31d595ed81bc343f19fd549 Mon Sep 17 00:00:00 2001 From: Kevin Buettner Date: Wed, 23 Jan 2002 06:24:20 +0000 Subject: Fix xcalloc() calls so order of arguments is not reversed. --- gdb/solib-sunos.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gdb/solib-sunos.c') 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++) -- cgit v1.2.1