mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-23 11:45:27 +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))
|
||||
{
|
||||
fill_pathname_join(buf, buf,
|
||||
path, sizeof(buf));
|
||||
fill_pathname_noext(autoconf_file, buf,
|
||||
char buf_new[PATH_MAX_LENGTH] = {0};
|
||||
|
||||
fill_pathname_join(buf_new, buf,
|
||||
path, sizeof(buf_new));
|
||||
fill_pathname_noext(autoconf_file, buf_new,
|
||||
file_path_str(FILE_PATH_CONFIG_EXTENSION),
|
||||
sizeof(autoconf_file));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user