1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-11-22 07:37:38 +01:00

Use constants for ELF magic bytes in _UCD_create.c

This commit is contained in:
Tommi Rantala 2012-08-07 23:48:10 +03:00
parent 9a6d921230
commit 2d750952a5

View file

@ -105,7 +105,7 @@ _UCD_create(const char *filename)
goto err; 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); Debug(0, "'%s' is not an ELF file\n", filename);
goto err; goto err;