diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-07-29 19:01:50 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-29 19:01:50 -0700 |
| commit | 433a29bb70d51abb84c77a911ced43c6ff14706e (patch) | |
| tree | df416c88fd3a6f5e41b6d049a06f5ee6c8038e15 /lib | |
| parent | fbe98ff9a9c14a58a1216349416a3943c4b9f44b (diff) | |
| parent | a99f9427420d0b519881dacd1a28007d6c1d71d0 (diff) | |
Merge pull request #1066 from Makdaam/issue1033
Fixin issue1033
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/oofatfs/ff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/oofatfs/ff.c b/lib/oofatfs/ff.c index b0984756b..4e8680545 100644 --- a/lib/oofatfs/ff.c +++ b/lib/oofatfs/ff.c @@ -2579,8 +2579,8 @@ FRESULT create_name ( /* FR_OK: successful, FR_INVALID_NAME: could not create if (w < 0x80 && chk_chr("\"*:<>\?|\x7F", w)) return FR_INVALID_NAME; /* Reject illegal characters for LFN */ lfn[di++] = w; /* Store the Unicode character */ } + cf = ((w < ' ') || ((w == '/' || w == '\\') && p[si+1] < ' ')) ? NS_LAST : 0; /* Set last segment flag if end of the path */ *path = &p[si]; /* Return pointer to the next segment */ - cf = (w < ' ') ? NS_LAST : 0; /* Set last segment flag if end of the path */ #if _FS_RPATH != 0 if ((di == 1 && lfn[di - 1] == '.') || (di == 2 && lfn[di - 1] == '.' && lfn[di - 2] == '.')) { /* Is this segment a dot name? */ |
