diff --git a/src/Services/EventActionService.cpp b/src/Services/EventActionService.cpp index 7446ed78388557f26b40b08202cdec2902176ed3..478c794305bf8897476cf66c44ac7151542a6de6 100644 --- a/src/Services/EventActionService.cpp +++ b/src/Services/EventActionService.cpp @@ -23,9 +23,7 @@ void EventActionService::addEventActionDefinitions(Message message) { eventActionDefinitionArray[index].enabled = true; eventActionDefinitionArray[index].applicationId = message.readEnum16(); eventActionDefinitionArray[index].eventDefinitionID = message.readEnum16(); - // Tests pass with message.dataSize - 3, message.dataSize - 4, but not - // message.dataSize - 5 - if (message.dataSize - 4 > ECSS_EVENT_SERVICE_STRING_SIZE) { // TODO: Fix this + if (message.dataSize - 4 > ECSS_EVENT_SERVICE_STRING_SIZE) { // TODO: Should this be >= ErrorHandler::reportInternalError(ErrorHandler::InternalErrorType::MessageTooLarge); } else { char data[ECSS_EVENT_SERVICE_STRING_SIZE];