summaryrefslogtreecommitdiff
path: root/bfd/bfdio.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-01-06 11:43:50 +0000
committerTristan Gingold <gingold@adacore.com>2012-01-06 11:43:50 +0000
commitb8a5ec861738093ba1e34fb47e9b9d9588c52b7c (patch)
treeefbfc398da1f24c053d36478baf79d7c38dc2bb1 /bfd/bfdio.c
parent317c910f53bbe27705bfd801308b30463f0cb566 (diff)
downloadbinutils-redhat-b8a5ec861738093ba1e34fb47e9b9d9588c52b7c.tar.gz
2012-01-06 Tristan Gingold <gingold@adacore.com>
* bfdio.c (bfd_bread): Use arelt_size macro.
Diffstat (limited to 'bfd/bfdio.c')
-rw-r--r--bfd/bfdio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index 841c781f4b..f8c9f3e4c4 100644
--- a/bfd/bfdio.c
+++ b/bfd/bfdio.c
@@ -185,7 +185,7 @@ bfd_bread (void *ptr, bfd_size_type size, bfd *abfd)
this element. */
if (abfd->arelt_data != NULL)
{
- size_t maxbytes = ((struct areltdata *) abfd->arelt_data)->parsed_size;
+ size_t maxbytes = arelt_size (abfd);
if (abfd->where + size > maxbytes)
{
if (abfd->where >= maxbytes)