fix error/warning buffer overflow #2456
This commit is contained in:
parent
b56a31143e
commit
cf4068f54a
|
@ -872,7 +872,7 @@ int TunerStudioBase::handleCrcCommand(TsChannelBase* tsChannel, char *data, int
|
||||||
#if HW_CHECK_MODE
|
#if HW_CHECK_MODE
|
||||||
// analog input errors are returned as firmware error in QC mode
|
// analog input errors are returned as firmware error in QC mode
|
||||||
if (!hasFirmwareError()) {
|
if (!hasFirmwareError()) {
|
||||||
strcpy(configError, "FACTORY_MODE_PLEASE_CONTACT_SUPPORT");
|
strcpy((char*)configError, "FACTORY_MODE_PLEASE_CONTACT_SUPPORT");
|
||||||
}
|
}
|
||||||
#endif // HW_CHECK_MODE
|
#endif // HW_CHECK_MODE
|
||||||
tsChannel->sendResponse(TS_CRC, reinterpret_cast<const uint8_t*>(configError), strlen(configError));
|
tsChannel->sendResponse(TS_CRC, reinterpret_cast<const uint8_t*>(configError), strlen(configError));
|
||||||
|
|
Loading…
Reference in New Issue