We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca79b49 commit 25fb651Copy full SHA for 25fb651
lib/oofatfs/ff.c
@@ -2821,7 +2821,7 @@ static FRESULT create_name ( /* FR_OK: successful, FR_INVALID_NAME: could not
2821
if (di >= FF_MAX_LFN) return FR_INVALID_NAME; /* Reject too long name */
2822
lfn[di++] = wc; /* Store the Unicode character */
2823
}
2824
- while (*p == '/' || *p == '\\') p++; /* Skip duplicated separators if exist */
+ if (wc == '/' || wc == '\\') while (*p == '/' || *p == '\\') p++; /* Skip duplicated separators if exist */
2825
*path = p; /* Return pointer to the next segment */
2826
cf = (wc < ' ') ? NS_LAST : 0; /* Set last segment flag if end of the path */
2827
0 commit comments