Fix segfault when ssnes.cfg is not found in $XDG_CONFIG_HOME.

This commit is contained in:
Themaister 2011-01-07 11:45:53 +01:00
parent c5d1f7d60b
commit 622a1a9c70

View File

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