diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index b24ae2814985d04b3674aaf5afa3c09628dcd78c..8ad2826b78c2d21930fe6ca186e977f28726ba88 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -2601,7 +2601,7 @@ void I_GetDiskFreeSpace(INT64 *freespace) return; #else // Both Linux and BSD have this, apparently. struct statfs stfs; - if (statfs(".", &stfs) == -1) + if (statfs(srb2home, &stfs) == -1) { *freespace = INT32_MAX; return; @@ -2620,7 +2620,7 @@ void I_GetDiskFreeSpace(INT64 *freespace) } if (pfnGetDiskFreeSpaceEx) { - if (pfnGetDiskFreeSpaceEx(NULL, &lfreespace, &usedbytes, NULL)) + if (pfnGetDiskFreeSpaceEx(srb2home, &lfreespace, &usedbytes, NULL)) *freespace = lfreespace.QuadPart; else *freespace = INT32_MAX;