From e41c90c5f53edfcdb8824b15b7207e8df94bc34a Mon Sep 17 00:00:00 2001 From: liuxueli Date: Wed, 26 Jul 2023 14:53:41 +0800 Subject: [PATCH] =?UTF-8?q?ASAN=E6=A8=A1=E5=BC=8F=E8=BF=90=E8=A1=8C?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E6=97=B6=E5=AD=98=E5=9C=A8=E9=9D=9E?= =?UTF-8?q?=E6=B3=95=E8=AF=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tsg_entry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tsg_entry.cpp b/src/tsg_entry.cpp index 74c0a85..201997d 100644 --- a/src/tsg_entry.cpp +++ b/src/tsg_entry.cpp @@ -178,15 +178,15 @@ static int get_deploy_mode(void) int ret=sapp_get_platform_opt(SPO_DEPLOYMENT_MODE_STR, s_mode, &len); if(ret>=0) { - if((memcmp(s_mode, "mirror", strlen(s_mode)))==0 || (memcmp(s_mode, "dumpfile", strlen(s_mode)))==0) + if((strcmp(s_mode, "mirror"))==0 || (strcmp(s_mode, "dumpfile"))==0) { g_tsg_para.deploy_mode=DEPLOY_MODE_MIRROR; } - else if((memcmp(s_mode, "inline", strlen(s_mode)))==0) + else if((strcmp(s_mode, "inline"))==0) { g_tsg_para.deploy_mode=DEPLOY_MODE_INLINE; } - else if((memcmp(s_mode, "transparent", strlen(s_mode)))==0) + else if((strcmp(s_mode, "transparent"))==0) { g_tsg_para.deploy_mode=DEPLOY_MODE_TRANSPARENT; }