2012-01-06 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Fri, 6 Jan 2012 11:43:51 +0000 (11:43 +0000)
committerTristan Gingold <gingold@adacore.com>
Fri, 6 Jan 2012 11:43:51 +0000 (11:43 +0000)
* bfdio.c (bfd_bread): Use arelt_size macro.

bfd/ChangeLog
bfd/bfdio.c

index 3035c2228fbbad4c8c160d5db237f2cb9622a697..f9d28f329db70189f446d4c2aae033603598bd4b 100644 (file)
@@ -1,3 +1,7 @@
+2012-01-06  Tristan Gingold  <gingold@adacore.com>
+
+       * bfdio.c (bfd_bread): Use arelt_size macro.
+
 2012-01-06  Tristan Gingold  <gingold@adacore.com>
 
        * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
index 841c781f4bd8e08f4abc842199bf1ad4dc147cd4..f8c9f3e4c418ad67762124902ffa73e3227bb05a 100644 (file)
@@ -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)
This page took 0.026383 seconds and 4 git commands to generate.