aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
Diffstat (limited to 'sway')
-rw-r--r--sway/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c
index 3a7f3904..0dc53c75 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -42,7 +42,7 @@ static char *get_config_path() {
} else {
name = "/sway/config";
temp = malloc(strlen(xdg_config_home) + strlen(name) + 1);
- strcpy(xdg_config_home, home);
+ strcpy(temp, xdg_config_home);
strcat(temp, name);
}
if (exists(temp)) {
@@ -98,7 +98,7 @@ static char *get_config_path() {
} else {
name = "/i3/config";
temp = malloc(strlen(xdg_config_home) + strlen(name) + 1);
- strcpy(xdg_config_home, home);
+ strcpy(temp, xdg_config_home);
strcat(temp, name);
}
if (exists(temp)) {