Merge pull request #2800 from joolswills/config_save

fix config path saving when saving new config - can't use overlapping…
This commit is contained in:
Twinaphex 2016-03-19 04:55:46 +01:00
commit 1c56e86da4

View File

@ -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;