diff options
author | Tristan Gingold <gingold@adacore.com> | 2012-01-06 11:43:50 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2012-01-06 11:43:50 +0000 |
commit | 5a013f5055b2ba02734dcd98bc3ecefa407bc6b7 (patch) | |
tree | 33307cbc524893ab1c9499dcdea9a3a0571b3400 /bfd/bfdio.c | |
parent | b8238046f6926eb90441e225283360ffe0ac8759 (diff) | |
download | gdb-5a013f5055b2ba02734dcd98bc3ecefa407bc6b7.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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/bfdio.c b/bfd/bfdio.c index 841c781f4bd..f8c9f3e4c41 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) |