mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-28 02:30:35 +00:00
Fix segfault when ssnes.cfg is not found in $XDG_CONFIG_HOME.
This commit is contained in:
parent
c5d1f7d60b
commit
622a1a9c70
@ -143,7 +143,7 @@ void parse_config(void)
|
||||
else if (home)
|
||||
{
|
||||
char conf_path[strlen(home) + strlen("/.ssnesrc ")];
|
||||
strcpy(conf_path, xdg);
|
||||
strcpy(conf_path, home);
|
||||
strcat(conf_path, "/.ssnesrc");
|
||||
conf = config_file_new(conf_path);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user