aboutsummaryrefslogtreecommitdiff
path: root/binutils/ar.c
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/ar.c')
-rw-r--r--binutils/ar.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/binutils/ar.c b/binutils/ar.c
index 4afcff4..96f4213 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -528,7 +528,8 @@ print_contents (abfd)
nread = bfd_read (cbuf, 1, tocopy, abfd); /* oops -- broke
abstraction! */
if (nread != tocopy)
- fatal ("%s is not a valid archive", abfd->my_archive->filename);
+ fatal ("%s is not a valid archive",
+ bfd_get_filename (bfd_my_archive (abfd)));
fwrite (cbuf, 1, nread, stdout);
ncopied += tocopy;
}
@@ -583,7 +584,8 @@ extract_file (abfd)
nread = bfd_read (cbuf, 1, tocopy, abfd);
if (nread != tocopy)
- fatal ("%s is not a valid archive", abfd->my_archive->filename);
+ fatal ("%s is not a valid archive",
+ bfd_get_filename (bfd_my_archive (abfd)));
/* See comment above; this saves disk arm motion */
if (!ostream)