From 180317a392441d604abda81b7c223cfb323e318a Mon Sep 17 00:00:00 2001 From: ekeeke31 Date: Fri, 19 Feb 2010 12:30:02 +0000 Subject: [PATCH] fixed regression that prevents SRAM data > 2K to be loaded properly --- source/gx/fileio/file_mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/gx/fileio/file_mem.c b/source/gx/fileio/file_mem.c index 812ca82..1996638 100644 --- a/source/gx/fileio/file_mem.c +++ b/source/gx/fileio/file_mem.c @@ -131,7 +131,7 @@ static int FAT_ManageFile(char *filename, u8 direction, u8 filetype) if (filetype) /* SRAM */ { - memcpy(sram.sram, savebuffer, filesize); + memcpy(sram.sram, savebuffer, done); sram.crc = crc32 (0, sram.sram, 0x10000); } else