aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/platform/ds/arm9/source/fat/gba_nds_fat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/ds/arm9/source/fat/gba_nds_fat.c b/backends/platform/ds/arm9/source/fat/gba_nds_fat.c
index 1247b3f948..ddae087c94 100644
--- a/backends/platform/ds/arm9/source/fat/gba_nds_fat.c
+++ b/backends/platform/ds/arm9/source/fat/gba_nds_fat.c
@@ -3186,7 +3186,7 @@ int FAT_mkdir (const char* path)
// Create . directory entry
dirEntry.name[0] = '.';
// Fill name and extension with spaces
- for (i = 1; i < (sizeof(name)/sizeof(name[0])); i++)
+ for (i = 1; i < (sizeof(dirEntry.name)/sizeof(dirEntry.name[0])); i++)
{
dirEntry.name[i] = ' ';
}