mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
config_save_autoconf_profile - prevent first two parameters of fill_pathname_join being the same
This commit is contained in:
parent
3c9014db78
commit
b97eac8f30
@ -2757,9 +2757,11 @@ bool config_save_autoconf_profile(const char *path, unsigned user)
|
|||||||
|
|
||||||
if(path_is_directory(buf))
|
if(path_is_directory(buf))
|
||||||
{
|
{
|
||||||
fill_pathname_join(buf, buf,
|
char buf_new[PATH_MAX_LENGTH] = {0};
|
||||||
path, sizeof(buf));
|
|
||||||
fill_pathname_noext(autoconf_file, buf,
|
fill_pathname_join(buf_new, buf,
|
||||||
|
path, sizeof(buf_new));
|
||||||
|
fill_pathname_noext(autoconf_file, buf_new,
|
||||||
file_path_str(FILE_PATH_CONFIG_EXTENSION),
|
file_path_str(FILE_PATH_CONFIG_EXTENSION),
|
||||||
sizeof(autoconf_file));
|
sizeof(autoconf_file));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user