mirror of https://github.com/FOME-Tech/fome-fw.git
fix error/warning buffer overflow #2456
This commit is contained in:
parent
962e0b32e7
commit
212b9d6684
|
@ -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<const uint8_t*>(configError), strlen(configError));
|
||||
|
|
Loading…
Reference in New Issue