From 7b78a5a287827db9e9b16286f3604aef69b37c5c Mon Sep 17 00:00:00 2001
From: Leo C
Date: Mon, 17 Nov 2014 14:47:05 +0100
Subject: Import fatfs R0.10c
---
fatfs/doc/en/readdir.html | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'fatfs/doc/en/readdir.html')
diff --git a/fatfs/doc/en/readdir.html b/fatfs/doc/en/readdir.html
index 9808435..bf83ebe 100644
--- a/fatfs/doc/en/readdir.html
+++ b/fatfs/doc/en/readdir.html
@@ -77,7 +77,7 @@ FRESULT scan_files (
FILINFO fno;
DIR dir;
int i;
- char *fn; /* This function is assuming non-Unicode cfg. */
+ char *fn; /* This function assumes non-Unicode configuration */
#if _USE_LFN
static char lfn[_MAX_LFN + 1]; /* Buffer to store the LFN */
fno.lfname = lfn;
@@ -100,8 +100,8 @@ FRESULT scan_files (
if (fno.fattrib & AM_DIR) { /* It is a directory */
sprintf(&path[i], "/%s", fn);
res = scan_files(path);
- if (res != FR_OK) break;
path[i] = 0;
+ if (res != FR_OK) break;
} else { /* It is a file. */
printf("%s/%s\n", path, fn);
}
--
cgit v1.2.3