Fix save new config name when core loaded (#16458)

pull/16462/head
sonninnos 2024-04-23 19:54:04 +03:00 committed by GitHub
parent 2b8c8f1145
commit fc6d251be9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -1778,6 +1778,7 @@ bool command_event_save_core_config(
for (i = 0; i < 16; i++)
{
size_t _len = strlcpy(tmp, config_path, sizeof(tmp));
if (i)
_len += snprintf(tmp + _len, sizeof(tmp) - _len, "-%u", i);
strlcpy(tmp + _len, ".cfg", sizeof(tmp) - _len);