From e75c25e41d46e0d21f093393b7f3c2c6784c1002 Mon Sep 17 00:00:00 2001 From: d0k3 Date: Mon, 6 Aug 2018 23:22:16 +0200 Subject: [PATCH] Fix #411 --- arm9/source/filesys/fsutil.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arm9/source/filesys/fsutil.c b/arm9/source/filesys/fsutil.c index a33a952..8d778b8 100644 --- a/arm9/source/filesys/fsutil.c +++ b/arm9/source/filesys/fsutil.c @@ -525,7 +525,7 @@ bool PathMoveCopyRec(char* dest, char* orig, u32* flags, bool move, u8* buffer, ret = true; // destination file exists by now, so we need to handle deletion fsize = fvx_size(&ofile); // check space via cluster preallocation - if ((fvx_lseek(&dfile, fsize) != FR_OK) || (fvx_sync(&dfile) != FR_OK)) { + if ((fvx_lseek(&dfile, fsize) != FR_OK) || (fvx_sync(&dfile) != FR_OK) || (fvx_tell(&dfile) != fsize)) { if (!silent) ShowPrompt(false, "%s\nError: Not enough space available", deststr); ret = false; }