diff options
Diffstat (limited to 'src/common/file_util.cpp')
| -rw-r--r-- | src/common/file_util.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp index 2fbb0f260..1e0d33313 100644 --- a/src/common/file_util.cpp +++ b/src/common/file_util.cpp | |||
| @@ -821,8 +821,8 @@ void SplitFilename83(const std::string& filename, std::array<char, 9>& short_nam | |||
| 821 | const std::string forbidden_characters = ".\"/\\[]:;=, "; | 821 | const std::string forbidden_characters = ".\"/\\[]:;=, "; |
| 822 | 822 | ||
| 823 | // On a FAT32 partition, 8.3 names are stored as a 11 bytes array, filled with spaces. | 823 | // On a FAT32 partition, 8.3 names are stored as a 11 bytes array, filled with spaces. |
| 824 | short_name = {' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '\0'}; | 824 | short_name = {{' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', '\0'}}; |
| 825 | extension = {' ', ' ', ' ', '\0'}; | 825 | extension = {{' ', ' ', ' ', '\0'}}; |
| 826 | 826 | ||
| 827 | std::string::size_type point = filename.rfind('.'); | 827 | std::string::size_type point = filename.rfind('.'); |
| 828 | if (point == filename.size() - 1) | 828 | if (point == filename.size() - 1) |