summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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() {
42 } else { 42 } else {
43 name = "/sway/config"; 43 name = "/sway/config";
44 temp = malloc(strlen(xdg_config_home) + strlen(name) + 1); 44 temp = malloc(strlen(xdg_config_home) + strlen(name) + 1);
45 strcpy(xdg_config_home, home); 45 strcpy(temp, xdg_config_home);
46 strcat(temp, name); 46 strcat(temp, name);
47 } 47 }
48 if (exists(temp)) { 48 if (exists(temp)) {
@@ -98,7 +98,7 @@ static char *get_config_path() {
98 } else { 98 } else {
99 name = "/i3/config"; 99 name = "/i3/config";
100 temp = malloc(strlen(xdg_config_home) + strlen(name) + 1); 100 temp = malloc(strlen(xdg_config_home) + strlen(name) + 1);
101 strcpy(xdg_config_home, home); 101 strcpy(temp, xdg_config_home);
102 strcat(temp, name); 102 strcat(temp, name);
103 } 103 }
104 if (exists(temp)) { 104 if (exists(temp)) {