summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-18 06:53:02 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-18 06:53:13 -0400
commitdebb0d6bc198e13ef019b141029cdc62a7087532 (patch)
treecdd481d3310beb450361f151d26f893943403f37
parentMerge pull request #59 from lkundrak/man (diff)
downloadsway-debb0d6bc198e13ef019b141029cdc62a7087532.tar.gz
sway-debb0d6bc198e13ef019b141029cdc62a7087532.tar.zst
sway-debb0d6bc198e13ef019b141029cdc62a7087532.zip
Fix #64
-rw-r--r--sway/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c
index bde65614..e2d10d28 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -40,7 +40,7 @@ static char* get_config_path() {
40 } else { 40 } else {
41 name = "/sway/config"; 41 name = "/sway/config";
42 temp = malloc(strlen(xdg_config_home) + strlen(name) + 1); 42 temp = malloc(strlen(xdg_config_home) + strlen(name) + 1);
43 strcpy(temp, home); 43 strcpy(xdg_config_home, home);
44 strcat(temp, name); 44 strcat(temp, name);
45 } 45 }
46 if (exists(temp)) { 46 if (exists(temp)) {
@@ -93,7 +93,7 @@ static char* get_config_path() {
93 } else { 93 } else {
94 name = "/i3/config"; 94 name = "/i3/config";
95 temp = malloc(strlen(xdg_config_home) + strlen(name) + 1); 95 temp = malloc(strlen(xdg_config_home) + strlen(name) + 1);
96 strcpy(temp, home); 96 strcpy(xdg_config_home, home);
97 strcat(temp, name); 97 strcat(temp, name);
98 } 98 }
99 if (exists(temp)) { 99 if (exists(temp)) {