aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-03-26 23:55:54 +0000
committerAlan Modra <amodra@gmail.com>2013-03-26 23:55:54 +0000
commit2bdc3eca37f6cdaef138ac6b93c847fd2ea9dfed (patch)
tree5985734149a9c55d5dda476a90b85083f7a0c986
parentc62fa0e2670b0de9b24c292e0f6dfe539d8ae555 (diff)
downloadfsf-binutils-gdb-2bdc3eca37f6cdaef138ac6b93c847fd2ea9dfed.zip
fsf-binutils-gdb-2bdc3eca37f6cdaef138ac6b93c847fd2ea9dfed.tar.gz
fsf-binutils-gdb-2bdc3eca37f6cdaef138ac6b93c847fd2ea9dfed.tar.bz2
PR binutils/15206
* dwarf.c (read_and_display_attr_value): Cast format '*' arg to int.
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 02c3e17..e8c2eae 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-27 Alan Modra <amodra@gmail.com>
+
+ PR binutils/15206
+ * dwarf.c (read_and_display_attr_value): Cast format '*' arg to int.
+
2013-03-26 Nick Clifton <nickc@redhat.com>
PR binutils/15206
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index 24a5906..1787e7e 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;