From 5f937248455008055ffa8059e59f717776bda7e8 Mon Sep 17 00:00:00 2001 From: Aurora Date: Wed, 28 Sep 2016 15:37:58 +0200 Subject: [PATCH] Fix some unrelated files being detected as FIRMs due to uncleared FatFs strings --- source/fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/fs.c b/source/fs.c index 40daa11..8541cfd 100644 --- a/source/fs.c +++ b/source/fs.c @@ -172,7 +172,7 @@ u32 firmRead(void *dest, u32 firmType) while(f_readdir(&dir, &info) == FR_OK && info.fname[0] != 0) { //Not a cxi - if(info.fname[9] != 'a') continue; + if(info.fname[9] != 'a' || strlen(info.fname) != 12) continue; //Convert the .app name to an integer u32 tempVersion = 0;