Permalink
Comparing changes
Open a pull request
- 1 commit
- 1 file changed
- 0 commit comments
- 1 contributor
Unified
Split
Showing
with
2 additions
and 2 deletions.
- +2 −2 src/fs.c
| @@ -102,14 +102,14 @@ size_t enumerateDir(char ***output, char *path, char *pattern) { | ||
| int i = 0; | ||
| while (fno.fname[0] != 0 && fr == FR_OK) { | ||
| if (fno.fname[0] == '.') goto end; | ||
| if (fno.fname[0] == '.') goto next; | ||
| out = (char **)realloc(out, (i+1) * sizeof(char *)); | ||
| out[i] = (char *)malloc(FF_LFN_BUF); | ||
| strcpy(out[i], pathb); | ||
| strcat(out[i], fno.fname); | ||
| pathb[pathlen+1] = 0; | ||
| i++; | ||
| end: | ||
| next: | ||
| f_findnext(&dp, &fno); | ||
| } | ||