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); }