mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-28 22:23:42 +01:00
Merge pull request #81 from SyedAmerGilani/fix_xdg_config_home
fixed string building for XDG_CONFIG_HOME config loading
This commit is contained in:
commit
5c8daa6487
1 changed files with 2 additions and 2 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue