diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-04-05 16:27:36 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-04-05 16:27:36 +0000 |
commit | d909628bb7420e6a548f4c9491c98dba154608cd (patch) | |
tree | 99f7f77e81d20d0d5c11ac27ee54f8ab4137c353 | |
parent | 67d0e7ffa1a0a1a3220e3c2013826ed169717f62 (diff) | |
download | gdb-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.h | 2 |
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... */ |