mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-26 04:36:56 +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)
|
else if (home)
|
||||||
{
|
{
|
||||||
char conf_path[strlen(home) + strlen("/.ssnesrc ")];
|
char conf_path[strlen(home) + strlen("/.ssnesrc ")];
|
||||||
strcpy(conf_path, xdg);
|
strcpy(conf_path, home);
|
||||||
strcat(conf_path, "/.ssnesrc");
|
strcat(conf_path, "/.ssnesrc");
|
||||||
conf = config_file_new(conf_path);
|
conf = config_file_new(conf_path);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user