From 9ba6877772baa6bc5d76cea75ac2762ab92a8e35 Mon Sep 17 00:00:00 2001 From: Yongwoon Cho Date: Thu, 5 Nov 2015 05:43:13 +0900 Subject: [PATCH] Fix: iOS cannot go to parent directory. --- libretro-common/file/file_path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretro-common/file/file_path.c b/libretro-common/file/file_path.c index 89629373fb..4df8b2a8df 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -381,7 +381,8 @@ void fill_pathname_basedir(char *out_dir, void fill_pathname_parent_dir(char *out_dir, const char *in_dir, size_t size) { - retro_assert(strlcpy(out_dir, in_dir, size) < size); + if (out_dir != in_path) + retro_assert(strlcpy(out_dir, in_dir, size) < size); path_parent_dir(out_dir); }