X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/5366852335044c1e68a5c32548d3051cc943552f..05437fb4cdb907816a4fc3ffafa2617fcf33266a:/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); }