diff options
Diffstat (limited to 'bfd/bfdio.c')
-rw-r--r-- | bfd/bfdio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/bfdio.c b/bfd/bfdio.c index 841c781..f8c9f3e 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) |