]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - bfd/libbfd.c
Made sure that every call to bfd_read, bfd_write, and bfd_seek
[thirdparty/binutils-gdb.git] / bfd / libbfd.c
index da3460b4886c7f63e2cdf9257cbdaaf0c1c5ac4a..93522d9cd3f5c0ab93e1fc070d8667569b87b7db 100644 (file)
@@ -248,7 +248,8 @@ bfd_write_bigendian_4byte_int (abfd, i)
 {
   bfd_byte buffer[4];
   bfd_putb32(i, buffer);
-  bfd_write((PTR)buffer, 4, 1, abfd);
+  if (bfd_write((PTR)buffer, 4, 1, abfd) != 4)
+    abort ();
 }
 
 long