From b45eac6c58b8f91279e432f62494c6f628e3c43d Mon Sep 17 00:00:00 2001 From: RocketRobz Date: Mon, 3 Feb 2020 19:49:11 -0700 Subject: [PATCH] Bug fix --- arm9/source/fileOperations.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arm9/source/fileOperations.cpp b/arm9/source/fileOperations.cpp index 0d7c377..01fa3c8 100644 --- a/arm9/source/fileOperations.cpp +++ b/arm9/source/fileOperations.cpp @@ -126,8 +126,8 @@ int fcopy(const char *sourcePath, const char *destinationPath) printf ("%i/%i Bytes ", (int)offset, (int)fsize); // Copy file to destination path - numr = fread(copyBuf, 2, copyBufSize, sourceFile); - fwrite(copyBuf, 2, numr, destinationFile); + numr = fread(copyBuf, 1, copyBufSize, sourceFile); + fwrite(copyBuf, 1, numr, destinationFile); offset += copyBufSize; if (offset > fsize) {