mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 08:00:53 +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.
|
* 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;
|
filename = ev->filename + 9;
|
||||||
else
|
else
|
||||||
filename = ev->filename;
|
filename = ev->filename;
|
||||||
|
|||||||
Reference in New Issue
Block a user