This commit is contained in:
Drew DeVault 2015-08-18 06:53:02 -04:00
parent 39bcad23dd
commit debb0d6bc1

View file

@ -40,7 +40,7 @@ static char* get_config_path() {
} else {
name = "/sway/config";
temp = malloc(strlen(xdg_config_home) + strlen(name) + 1);
strcpy(temp, home);
strcpy(xdg_config_home, home);
strcat(temp, name);
}
if (exists(temp)) {
@ -93,7 +93,7 @@ static char* get_config_path() {
} else {
name = "/i3/config";
temp = malloc(strlen(xdg_config_home) + strlen(name) + 1);
strcpy(temp, home);
strcpy(xdg_config_home, home);
strcat(temp, name);
}
if (exists(temp)) {