summaryrefslogtreecommitdiffstats
path: root/elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf.c')
-rw-r--r--elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf.c b/elf.c
index 6736dcc..2a73ce3 100644
--- a/elf.c
+++ b/elf.c
@@ -51,7 +51,7 @@ read_elf_header (FILE * fp)
efile.fp = fp;
if ((ehdr.e_ident[EI_MAG0] != 0x7f) ||
- strncmp (&ehdr.e_ident[EI_MAG1], "ELF", 3) != 0)
+ strncmp ((char *) &ehdr.e_ident[EI_MAG1], "ELF", 3) != 0)
{
return (-1);
}