aboutsummaryrefslogtreecommitdiff
path: root/bfd/libbfd.h
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/libbfd.h')
-rw-r--r--bfd/libbfd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 1fc88a8..a84febd 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -890,7 +890,7 @@ _bfd_alloc_and_read (bfd *abfd, bfd_size_type asize, bfd_size_type rsize)
mem = bfd_alloc (abfd, asize);
if (mem != NULL)
{
- if (bfd_bread (mem, rsize, abfd) == rsize)
+ if (bfd_read (mem, rsize, abfd) == rsize)
return mem;
bfd_release (abfd, mem);
}
@@ -913,7 +913,7 @@ _bfd_malloc_and_read (bfd *abfd, bfd_size_type asize, bfd_size_type rsize)
mem = bfd_malloc (asize);
if (mem != NULL)
{
- if (bfd_bread (mem, rsize, abfd) == rsize)
+ if (bfd_read (mem, rsize, abfd) == rsize)
return mem;
free (mem);
}