aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive.c
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2008-04-22 00:12:23 +0000
committerCary Coutant <ccoutant@google.com>2008-04-22 00:12:23 +0000
commit38d6ea5b02e4a60fd3aa3b59ac1b2b10c6ee7fa8 (patch)
tree83c4462dd6a48f19a3b20e96409e4b49053016c8 /bfd/archive.c
parentcc0dcea88a10da2699523e58f2fe5a03b0fc292e (diff)
downloadgdb-38d6ea5b02e4a60fd3aa3b59ac1b2b10c6ee7fa8.zip
gdb-38d6ea5b02e4a60fd3aa3b59ac1b2b10c6ee7fa8.tar.gz
gdb-38d6ea5b02e4a60fd3aa3b59ac1b2b10c6ee7fa8.tar.bz2
* archive.c (_bfd_write_archive_contents): Fix incorrect use of
ARFMAG.
Diffstat (limited to 'bfd/archive.c')
-rw-r--r--bfd/archive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/archive.c b/bfd/archive.c
index 9861ed9..0ca3db1 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -1982,7 +1982,7 @@ _bfd_write_archive_contents (bfd *arch)
return FALSE;
if ((elength % 2) == 1)
{
- if (bfd_bwrite (ARFMAG, 1, arch) != 1)
+ if (bfd_bwrite (&ARFMAG[1], 1, arch) != 1)
return FALSE;
}
}
@@ -2024,7 +2024,7 @@ _bfd_write_archive_contents (bfd *arch)
if ((arelt_size (current) % 2) == 1)
{
- if (bfd_bwrite (ARFMAG, 1, arch) != 1)
+ if (bfd_bwrite (&ARFMAG[1], 1, arch) != 1)
return FALSE;
}
}