From cf4068f54a9a647fa92cd203d40d8c45913f2eff Mon Sep 17 00:00:00 2001 From: rusefillc Date: Sun, 14 Mar 2021 09:52:27 -0400 Subject: [PATCH] fix error/warning buffer overflow #2456 --- firmware/console/binary/tunerstudio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/firmware/console/binary/tunerstudio.cpp b/firmware/console/binary/tunerstudio.cpp index ab6fadcca7..d3b73073a9 100644 --- a/firmware/console/binary/tunerstudio.cpp +++ b/firmware/console/binary/tunerstudio.cpp @@ -872,7 +872,7 @@ int TunerStudioBase::handleCrcCommand(TsChannelBase* tsChannel, char *data, int #if HW_CHECK_MODE // analog input errors are returned as firmware error in QC mode if (!hasFirmwareError()) { - strcpy(configError, "FACTORY_MODE_PLEASE_CONTACT_SUPPORT"); + strcpy((char*)configError, "FACTORY_MODE_PLEASE_CONTACT_SUPPORT"); } #endif // HW_CHECK_MODE tsChannel->sendResponse(TS_CRC, reinterpret_cast(configError), strlen(configError));