libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH 17/27] Use constants for ELF magic bytes in _UC


From: Tommi Rantala
Subject: [Libunwind-devel] [PATCH 17/27] Use constants for ELF magic bytes in _UCD_create.c
Date: Wed, 22 Aug 2012 14:28:43 +0300

---
 src/coredump/_UCD_create.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/coredump/_UCD_create.c b/src/coredump/_UCD_create.c
index 0f791af..73cd28a 100644
--- a/src/coredump/_UCD_create.c
+++ b/src/coredump/_UCD_create.c
@@ -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;
-- 
1.7.9.5




reply via email to

[Prev in Thread] Current Thread [Next in Thread]