summaryrefslogtreecommitdiff
path: root/bfd/mach-o.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-08-17 10:17:38 +0000
committerTristan Gingold <gingold@adacore.com>2011-08-17 10:17:38 +0000
commita69c8983e62a45a2b99f2910d02feeb6f45cc065 (patch)
treee4c64c226afb8e226558aa1a3af0020ad746a151 /bfd/mach-o.c
parent72441da6f2fe16629e17588548de3d03119a2046 (diff)
downloadgdb-a69c8983e62a45a2b99f2910d02feeb6f45cc065.tar.gz
2011-08-17 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_write_section_32): Fix typo.
Diffstat (limited to 'bfd/mach-o.c')
-rw-r--r--bfd/mach-o.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/mach-o.c b/bfd/mach-o.c
index 832bc98a142..6b2d3d40e63 100644
--- a/bfd/mach-o.c
+++ b/bfd/mach-o.c
@@ -957,7 +957,7 @@ bfd_mach_o_write_section_32 (bfd *abfd, bfd_mach_o_section *section)
struct mach_o_section_32_external raw;
memcpy (raw.sectname, section->sectname, 16);
- memcpy (raw.segname + 16, section->segname, 16);
+ memcpy (raw.segname, section->segname, 16);
bfd_h_put_32 (abfd, section->addr, raw.addr);
bfd_h_put_32 (abfd, section->size, raw.size);
bfd_h_put_32 (abfd, section->offset, raw.offset);