Fix path for statvfs

This commit is contained in:
Francisco Javier Trujillo Mata
2023-11-30 23:45:28 +01:00
parent cfc954cf98
commit 9f14f4a98e

View File

@@ -1038,6 +1038,12 @@ int statvfs (const char *__path, struct statvfs *__buf)
{
SceDevInf inf;
SceDevctlCmd cmd;
char dest[MAXNAMLEN + 1];
if(__path_absolute(__path, dest, MAXNAMLEN) < 0) {
errno = ENAMETOOLONG;
return -1;
}
cmd.dev_inf = &inf;
memset(&inf, 0, sizeof(SceDevInf));