mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-30 06:43:53 +00:00
fix config path saving when saving new config - can't use overlapping buffers in snprintf - fixes #2793
This commit is contained in:
parent
2169f89946
commit
797e62f604
@ -702,7 +702,7 @@ static bool event_save_core_config(void)
|
||||
else
|
||||
strlcpy(tmp, ".cfg", sizeof(tmp));
|
||||
|
||||
snprintf(config_path, sizeof(config_path), "%s%s", config_path, tmp);
|
||||
strlcat(config_path, tmp, sizeof(config_path));
|
||||
if (!path_file_exists(config_path))
|
||||
{
|
||||
found_path = true;
|
||||
|
Loading…
Reference in New Issue
Block a user