mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-21 23:27:39 +01:00
Use constants for ELF magic bytes in _UCD_create.c
This commit is contained in:
parent
9a6d921230
commit
2d750952a5
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ _UCD_create(const char *filename)
|
|||
goto err;
|
||||
}
|
||||
|
||||
if (memcmp(&elf_header32, "\x7f""ELF", 4) != 0)
|
||||
if (memcmp(&elf_header32, ELFMAG, SELFMAG) != 0)
|
||||
{
|
||||
Debug(0, "'%s' is not an ELF file\n", filename);
|
||||
goto err;
|
||||
|
|
Loading…
Reference in a new issue