summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
Diffstat (limited to 'cmds')
-rw-r--r--cmds/dumpstate/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/dumpstate/utils.c b/cmds/dumpstate/utils.c
index 309a004..7694adb 100644
--- a/cmds/dumpstate/utils.c
+++ b/cmds/dumpstate/utils.c
@@ -565,7 +565,7 @@ const char *dump_traces() {
}
data[len] = '\0';
- if (!strcmp(data, "/system/bin/app_process")) {
+ if (!strncmp(data, "/system/bin/app_process", strlen("/system/bin/app_process"))) {
/* skip zygote -- it won't dump its stack anyway */
snprintf(path, sizeof(path), "/proc/%d/cmdline", pid);
int fd = open(path, O_RDONLY);
@@ -575,7 +575,7 @@ const char *dump_traces() {
continue;
}
data[len] = '\0';
- if (!strcmp(data, "zygote")) {
+ if (!strncmp(data, "zygote", strlen("zygote"))) {
continue;
}