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 | 13fc0c2f38ad82e07263ae624593a22deffaf157 (patch) | |
tree | ad8629f46ea0e4748c44c5ba3747b90c51f53c7c /gdb/solib-svr4.c | |
parent | 7bd872fe055d9a878f3e8a40abf1ff619419da8f (diff) | |
download | gdb-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-svr4.c')
-rw-r--r-- | gdb/solib-svr4.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c index 987e776..f46326f 100644 --- a/gdb/solib-svr4.c +++ b/gdb/solib-svr4.c @@ -1110,8 +1110,8 @@ svr4_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++) |