From b8a5ec861738093ba1e34fb47e9b9d9588c52b7c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 6 Jan 2012 11:43:50 +0000 Subject: 2012-01-06 Tristan Gingold * bfdio.c (bfd_bread): Use arelt_size macro. --- bfd/bfdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bfd/bfdio.c') 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) -- cgit v1.2.1