gcc11 is smart
This commit is contained in:
parent
38639e8877
commit
c376d4de90
|
@ -271,8 +271,10 @@ void firmwareError(obd_code_e code, const char *fmt, ...) {
|
|||
}
|
||||
|
||||
auto sramState = getBackupSram();
|
||||
strncpy(sramState->ErrorString, criticalErrorMessageBuffer, efi::size(sramState->ErrorString));
|
||||
sramState->Cookie = ErrorCookie::FirmwareError;
|
||||
if (sramState != nullptr) {
|
||||
strncpy(sramState->ErrorString, criticalErrorMessageBuffer, efi::size(sramState->ErrorString));
|
||||
sramState->Cookie = ErrorCookie::FirmwareError;
|
||||
}
|
||||
#else
|
||||
|
||||
char errorBuffer[200];
|
||||
|
|
Loading…
Reference in New Issue