System info: workaround for uninitialised movable.sed

This commit is contained in:
d0k3 2018-02-26 22:50:40 +01:00
parent 2f739ab130
commit 37cdb26f91

View File

@ -273,7 +273,7 @@ void GetSysInfo_Movable(SysInfo* info, char nand_drive) {
strncpy(info->movablekeyy, "<unknown>", countof(info->movablekeyy)); strncpy(info->movablekeyy, "<unknown>", countof(info->movablekeyy));
strncpy(info->nand_id0, "<unknown>", countof(info->nand_id0)); strncpy(info->nand_id0, "<unknown>", countof(info->nand_id0));
if (fvx_qread(path, &data, 0, sizeof(data), NULL) != FR_OK) if (fvx_qread(path, &data, 0, 0x120 /* sizeof(data) */, NULL) != FR_OK) // whatever, we don't need the last 0x20 byte here
return; return;
// The LocalFriendCodeSeed. // The LocalFriendCodeSeed.