This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Another ar fix


"len" is an "int" but _bfd_ar_spacepad has a "long" param, so by the
time we use the format specifier we're dealing with a "long".

	* archive.c (_bfd_archive_bsd44_construct_extended_name_table):
	Correct format specifier.

Index: bfd/archive.c
===================================================================
RCS file: /cvs/src/src/bfd/archive.c,v
retrieving revision 1.67
diff -u -p -r1.67 archive.c
--- bfd/archive.c	25 May 2010 10:14:13 -0000	1.67
+++ bfd/archive.c	22 Jul 2010 11:58:25 -0000
@@ -1649,7 +1649,7 @@ _bfd_archive_bsd44_construct_extended_na
 
           len = (len + 3) & ~3;
           arch_eltdata (current)->extra_size = len;
-          _bfd_ar_spacepad (hdr->ar_name, maxname, "#1/%u", len);
+          _bfd_ar_spacepad (hdr->ar_name, maxname, "#1/%lu", len);
 	}
     }
 

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]