aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-sunos.c
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2002-01-23 06:24:20 +0000
committerKevin Buettner <kevinb@redhat.com>2002-01-23 06:24:20 +0000
commit13fc0c2f38ad82e07263ae624593a22deffaf157 (patch)
treead8629f46ea0e4748c44c5ba3747b90c51f53c7c /gdb/solib-sunos.c
parent7bd872fe055d9a878f3e8a40abf1ff619419da8f (diff)
downloadgdb-13fc0c2f38ad82e07263ae624593a22deffaf157.zip
gdb-13fc0c2f38ad82e07263ae624593a22deffaf157.tar.gz
gdb-13fc0c2f38ad82e07263ae624593a22deffaf157.tar.bz2
Fix xcalloc() calls so order of arguments is not reversed.
Diffstat (limited to 'gdb/solib-sunos.c')
-rw-r--r--gdb/solib-sunos.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solib-sunos.c b/gdb/solib-sunos.c
index 304657c..0f81d05 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++)