[vms/committed]: fix a nit in ivms archives

Tristan Gingold gingold@adacore.com
Tue Jun 8 14:04:00 GMT 2010


Hi,

I am committing this patch to fix a nit:  in some cases, members were truncated.

Tristan.

bfd/
2010-06-08  Tristan Gingold  <gingold@adacore.com>

	* vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
	for the first block.


*** vms-lib.c	8 Jun 2010 08:26:01 -0000	1.10
--- vms-lib.c	8 Jun 2010 14:03:52 -0000
***************
*** 2111,2116 ****
--- 2111,2117 ----
            /* 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)
              {



More information about the Binutils mailing list