From 6a4e189cb79d02a2bb16b90b6be51e2906ed9329 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sat, 3 May 2008 14:18:03 +0400 Subject: [PATCH] --- yaml --- r: 95990 b: refs/heads/master c: 8bd1796dedd50abd7553afbe6113bd97cc88390f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/arch/x86/boot/compressed/relocs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 94412b9f11b1..4391af3f917a 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ecb783eae1372d69a53d406e1bdba8284e4bafcc +refs/heads/master: 8bd1796dedd50abd7553afbe6113bd97cc88390f diff --git a/trunk/arch/x86/boot/compressed/relocs.c b/trunk/arch/x86/boot/compressed/relocs.c index d01ea42187e6..edaadea90aaf 100644 --- a/trunk/arch/x86/boot/compressed/relocs.c +++ b/trunk/arch/x86/boot/compressed/relocs.c @@ -191,7 +191,7 @@ static void read_ehdr(FILE *fp) die("Cannot read ELF header: %s\n", strerror(errno)); } - if (memcmp(ehdr.e_ident, ELFMAG, 4) != 0) { + if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) { die("No ELF magic\n"); } if (ehdr.e_ident[EI_CLASS] != ELFCLASS32) {