From 29b81ed37aa026b22506642e9dc5b6803f2ab0bd Mon Sep 17 00:00:00 2001 From: luoyesiqiu Date: Sun, 29 Dec 2024 00:50:05 +0800 Subject: [PATCH] Update strstr --- shell/src/main/cpp/dpt_util.cpp | 2 +- shell/src/main/cpp/dpt_util.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/shell/src/main/cpp/dpt_util.cpp b/shell/src/main/cpp/dpt_util.cpp index 87258c71..406e882c 100644 --- a/shell/src/main/cpp/dpt_util.cpp +++ b/shell/src/main/cpp/dpt_util.cpp @@ -490,7 +490,7 @@ DPT_ENCRYPT int find_in_maps(int count,...) { for(int i = 0;i < count;i++) { const char *arg = va_arg(ap,const char *); - if(strstr(item_name,arg) != 0) { + if(dpt_strstr(item_name,arg) != 0) { DLOGD("found %s in %s",arg,item_name); found++; } diff --git a/shell/src/main/cpp/dpt_util.h b/shell/src/main/cpp/dpt_util.h index 5b786cc7..58b3c213 100644 --- a/shell/src/main/cpp/dpt_util.h +++ b/shell/src/main/cpp/dpt_util.h @@ -29,6 +29,7 @@ #include "dpt_jni.h" #include "common/dpt_log.h" #include "common/dpt_macro.h" +#include "common/dpt_string.h" #include "reflect/android_app_ActivityThread.h" #include "reflect/android_content_pm_ApplicationInfo.h"