fixing usage of cwd

This commit is contained in:
Francisco Javier Trujillo Mata 2024-01-25 17:19:08 +01:00
parent 71edae5955
commit 3e0a4faa96

View File

@ -64,7 +64,7 @@ static void create_path_names(void)
{
char user_path[FILENAME_MAX];
size_t _len = strlcpy(user_path, cwd, sizeof(user_path));
strlcpy(user_path + _len, "retroarch", sizeof(user_path) - _len);
strlcpy(user_path + _len, "/retroarch", sizeof(user_path) - _len);
fill_pathname_basedir(g_defaults.dirs[DEFAULT_DIR_PORT], cwd, sizeof(g_defaults.dirs[DEFAULT_DIR_PORT]));
/* Content in the same folder */