Fix: iOS cannot go to parent directory.

This commit is contained in:
Yongwoon Cho 2015-11-05 02:43:35 +09:00
parent d262361b97
commit 21944b2e11

View File

@ -364,7 +364,8 @@ void fill_pathname_base(char *out, const char *in_path, size_t size)
void fill_pathname_basedir(char *out_dir,
const char *in_path, size_t size)
{
retro_assert(strlcpy(out_dir, in_path, size) < size);
if (out_dir != in_path)
retro_assert(strlcpy(out_dir, in_path, size) < size);
path_basedir(out_dir);
}