From: Alan Modra Date: Tue, 26 Mar 2013 23:55:54 +0000 (+0000) Subject: PR binutils/15206 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2bdc3eca37f6cdaef138ac6b93c847fd2ea9dfed;p=binutils-gdb.git PR binutils/15206 * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 02c3e174bb0..e8c2eaec53c 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2013-03-27 Alan Modra + + PR binutils/15206 + * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int. + 2013-03-26 Nick Clifton PR binutils/15206 diff --git a/binutils/dwarf.c b/binutils/dwarf.c index 24a5906f846..1787e7e4959 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -1585,7 +1585,7 @@ read_and_display_attr_value (unsigned long attribute, case DW_FORM_string: if (!do_loc) - printf (" %.*s", end - data, data); + printf (" %.*s", (int) (end - data), data); data += strnlen ((char *) data, end - data) + 1; break;