Ignore trailing spaces in DOSFS_ToDosFCBFormat.
diff --git a/files/dos_fs.c b/files/dos_fs.c index a77b2b9..fe470a7 100644 --- a/files/dos_fs.c +++ b/files/dos_fs.c
@@ -244,7 +244,7 @@ /* at most 3 character of the extension are processed * is something behind this ? */ - if (*p == '*') p++; /* skip wildcard */ + while (*p == '*' || *p == ' ') p++; /* skip wildcards and spaces */ return IS_END_OF_NAME(*p); }