summaryrefslogtreecommitdiff
path: root/bfd/vms-lib.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2010-06-08 14:04:24 +0000
committerTristan Gingold <gingold@adacore.com>2010-06-08 14:04:24 +0000
commit126182261a66085b1591006f41f6c3296d569ff5 (patch)
tree9a083e2c75f014c286efd418a890c81c07946321 /bfd/vms-lib.c
parent88f236ba0e6d85cba6f842ac9784f74690183e58 (diff)
downloadbinutils-redhat-126182261a66085b1591006f41f6c3296d569ff5.tar.gz
2010-06-08 Tristan Gingold <gingold@adacore.com>
* vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment for the first block.
Diffstat (limited to 'bfd/vms-lib.c')
-rw-r--r--bfd/vms-lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bfd/vms-lib.c b/bfd/vms-lib.c
index c959df9596..13a4fa892b 100644
--- a/bfd/vms-lib.c
+++ b/bfd/vms-lib.c
@@ -2111,6 +2111,7 @@ _bfd_vms_lib_write_archive_contents (bfd *arch)
/* Write the first block (which contains an mhd). */
if (bfd_bwrite (blk, VMS_BLOCK_SIZE, arch) != VMS_BLOCK_SIZE)
goto input_err;
+ off += VMS_BLOCK_SIZE;
if (amt == VMS_BLOCK_SIZE - sz)
{