diff --git a/Miracast/MiracastService/MiracastController.cpp b/Miracast/MiracastService/MiracastController.cpp index 2c7fae38..a15e0c62 100644 --- a/Miracast/MiracastService/MiracastController.cpp +++ b/Miracast/MiracastService/MiracastController.cpp @@ -4,8 +4,8 @@ * * Copyright 2023 RDK Management * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. + * Licensed under the Apache License, Version 2.0 the "License"; + * you may not use this file ex cept in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 @@ -241,7 +241,7 @@ std::string MiracastController::start_DHCPClient(std::string interface, std::str MIRACASTLOG_TRACE("Entering..."); char data[1024] = {0}; char command[128] = {0}; - char sys_cls_file_ifidx[128] = {0}; + char sys_cls_file_ifidx[12] = {0}; std::string local_addr = "", gw_ip_addr = "", popen_buffer = "", @@ -1611,4 +1611,4 @@ void ControllerThreadCallback(void *args) miracast_ctrler_obj->Controller_Thread(nullptr); } MIRACASTLOG_TRACE("Exiting..."); -} \ No newline at end of file +} diff --git a/cov_build.sh b/cov_build.sh index b4a4ad86..f06ac7f3 100644 --- a/cov_build.sh +++ b/cov_build.sh @@ -49,7 +49,7 @@ cmake -G Ninja -S "$GITHUB_WORKSPACE" -B build/entservices-casting \ -include ${GITHUB_WORKSPACE}/entservices-testframework/Tests/mocks/gdialservice.h \ -include ${GITHUB_WORKSPACE}/entservices-testframework/Tests/mocks/wpa_ctrl_mock.h \ -include ${GITHUB_WORKSPACE}/entservices-testframework/Tests/mocks/secure_wrappermock.h \ ---coverage -Wall -Werror -Wno-error=format \ +-Wall -Werror -Wno-format-overflow -Wno-error=format-overflow \ -Wl,-wrap,system -Wl,-wrap,popen -Wl,-wrap,syslog -Wl,-wrap,wpa_ctrl_open -Wl,-wrap,wpa_ctrl_request -Wl,-wrap,wpa_ctrl_close -Wl,-wrap,wpa_ctrl_pending -Wl,-wrap,wpa_ctrl_recv -Wl,-wrap,wpa_ctrl_attach \ -DENABLE_TELEMETRY_LOGGING -DUSE_IARMBUS \ -DENABLE_SYSTEM_GET_STORE_DEMO_LINK -DENABLE_DEEP_SLEEP \