Fixed a slight mistake in the T1000 code, fixes #590.

This commit is contained in:
OBattler
2020-04-19 00:32:37 +02:00
parent 600bb09f17
commit d4781bd409

View File

@@ -1024,7 +1024,7 @@ t1000_configsys_load(void)
f = plat_fopen(nvr_path(L"t1000_config.nvr"), L"rb");
if (f != NULL) {
size = sizeof(t1000.t1000_nvram);
if (fread(t1000.t1000_nvram, size, 1, f) != size)
if (fread(t1000.t1000_nvram, 1, size, f) != size)
fatal("t1000_configsys_load(): Error reading data\n");
fclose(f);
}