From bbc042d3af126914438d875ffc79036add717f66 Mon Sep 17 00:00:00 2001 From: "chen.zhu" Date: Wed, 10 Jan 2024 15:18:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dcm=5Fctl=20pause=E7=AD=89?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E7=94=B1=E4=BA=8E=E6=95=B0=E7=BB=84=E4=B8=8B?= =?UTF-8?q?=E6=A0=87=E8=B6=8A=E7=95=8C=E5=AF=BC=E8=87=B4core=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cm_ctl/cm_ctl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cm_ctl/cm_ctl.cpp b/src/cm_ctl/cm_ctl.cpp index 82d19e5..ef8ea6e 100644 --- a/src/cm_ctl/cm_ctl.cpp +++ b/src/cm_ctl/cm_ctl.cpp @@ -273,7 +273,7 @@ static string CheckActionOptions(CtlCommand ctlCommandAction, vector option for (int checkIndexO = 0; checkIndexO < optionInLength; ++checkIndexO) { bool checkInArr = false; int checkIndexI = 0; - while (checkInterOptions[checkIndexI]!= 0) { + while (checkIndexI < (int)checkInterOptions.size() && checkInterOptions[checkIndexI]!= 0) { if (optionIn[checkIndexO] == checkInterOptions[checkIndexI]) { checkInArr = true; break;