diff --git a/libretro-common/file/retro_stat.c b/libretro-common/file/retro_stat.c index d3fc24d731..70637b1faa 100644 --- a/libretro-common/file/retro_stat.c +++ b/libretro-common/file/retro_stat.c @@ -88,7 +88,7 @@ static bool path_stat(const char *path, enum stat_mode mode) if (tmp[len-1] == '/') tmp[len-1]='\0'; - if (sceIoGetstat(path, &buf) < 0) + if (sceIoGetstat(tmp, &buf) < 0) { free(tmp); return false;