From d4781bd409c53438db70495911682a1d73241d0f Mon Sep 17 00:00:00 2001 From: OBattler Date: Sun, 19 Apr 2020 00:32:37 +0200 Subject: [PATCH] Fixed a slight mistake in the T1000 code, fixes #590. --- src/machine/m_xt_t1000.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/machine/m_xt_t1000.c b/src/machine/m_xt_t1000.c index 447354c3c..bf31be9f7 100644 --- a/src/machine/m_xt_t1000.c +++ b/src/machine/m_xt_t1000.c @@ -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); }