From 21944b2e11279c807e87414923ac6a3bf98fbbd4 Mon Sep 17 00:00:00 2001 From: Yongwoon Cho Date: Thu, 5 Nov 2015 02:43:35 +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 9cef250a5b..89629373fb 100644 --- a/libretro-common/file/file_path.c +++ b/libretro-common/file/file_path.c @@ -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); }