mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
elf: use strncmp for comparison
We expect strncmp available on systems we build ELF parsers.
This commit is contained in:
@ -154,7 +154,7 @@ sysprof_elf_symbol_resolver_load (SysprofSymbolResolver *resolver,
|
||||
* files as we see them inside the user-space view of the system.
|
||||
*/
|
||||
|
||||
if (memcmp (ev->filename, "/sysroot/", 9) == 0)
|
||||
if (strncmp (ev->filename, "/sysroot/", 9) == 0)
|
||||
filename = ev->filename + 9;
|
||||
else
|
||||
filename = ev->filename;
|
||||
|
||||
Reference in New Issue
Block a user