aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-04-05 16:27:36 +0000
committerIan Lance Taylor <ian@airs.com>1994-04-05 16:27:36 +0000
commitd909628bb7420e6a548f4c9491c98dba154608cd (patch)
tree99f7f77e81d20d0d5c11ac27ee54f8ab4137c353
parent67d0e7ffa1a0a1a3220e3c2013826ed169717f62 (diff)
downloadgdb-d909628bb7420e6a548f4c9491c98dba154608cd.zip
gdb-d909628bb7420e6a548f4c9491c98dba154608cd.tar.gz
gdb-d909628bb7420e6a548f4c9491c98dba154608cd.tar.bz2
* elfcode.h (write_shdrs_and_ehdr): Correct bfd_write check.
-rw-r--r--bfd/elfcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h
index 5c5e8cb..8a54d4b 100644
--- a/bfd/elfcode.h
+++ b/bfd/elfcode.h
@@ -2327,7 +2327,7 @@ write_shdrs_and_ehdr (abfd)
}
if (bfd_seek (abfd, (file_ptr) i_ehdrp->e_shoff, SEEK_SET) != 0
|| (bfd_write ((PTR) x_shdrp, sizeof (*x_shdrp), i_ehdrp->e_shnum, abfd)
- != sizeof (*x_shdrp)))
+ != sizeof (*x_shdrp) * i_ehdrp->e_shnum))
return false;
/* need to dump the string table too... */