1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-04-30 07:39:42 +02:00

Fix statfs() call for OSX

This commit is contained in:
Leland Lucius 2021-01-04 13:23:14 -06:00
parent 56c8bdcd24
commit 8e333e1fae

View File

@ -823,7 +823,7 @@ wxString FileNames::UnsavedProjectFileName()
bool FileNames::IsOnFATFileSystem(const FilePath &path)
{
struct statfs fs;
if (statfs(path.c_str(), &fs))
if (statfs(wxPathOnly(path).c_str(), &fs))
// Error from statfs
return false;
return 0 == strcmp(fs.f_fstypename, "msdos");