diff options
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r-- | bfd/libbfd-in.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h index 03ae099..fc4b7bc 100644 --- a/bfd/libbfd-in.h +++ b/bfd/libbfd-in.h @@ -884,7 +884,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); } @@ -907,7 +907,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); } |