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;