diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-08-19 07:00:35 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-08-19 07:00:35 -0400 |
commit | 5c8daa64875a1530e2ee4f5400e53953d927b396 (patch) | |
tree | 8f5c8b7e23ae22c5e3613d7e98880e3f56a9d090 /sway | |
parent | 6dc1ae802bb8cf1c272dc48c68fb42e3d548e812 (diff) | |
parent | ba5b451dd0c3f08e92f5960a7dad1deed77317f7 (diff) |
Merge pull request #81 from SyedAmerGilani/fix_xdg_config_home
fixed string building for XDG_CONFIG_HOME config loading
Diffstat (limited to 'sway')
-rw-r--r-- | sway/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c index be9f70c1..13280f9d 100644 --- a/sway/config.c +++ b/sway/config.c @@ -41,7 +41,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)) { @@ -94,7 +94,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)) { |