fix config path saving when saving new config - can't use overlapping buffers in snprintf - fixes #2793

This commit is contained in:
Jools Wills 2016-03-19 03:30:04 +00:00
parent 2169f89946
commit 797e62f604

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;