From d909628bb7420e6a548f4c9491c98dba154608cd Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 5 Apr 1994 16:27:36 +0000 Subject: [PATCH] * elfcode.h (write_shdrs_and_ehdr): Correct bfd_write check. --- bfd/elfcode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 5c5e8cb20c1..8a54d4bf079 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... */ -- 2.30.2