summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/config.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c
index d5a3f781..6c22556f 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -144,7 +144,7 @@ static char *get_config_path(void) {
144 144
145 if (!getenv("XDG_CONFIG_HOME")) { 145 if (!getenv("XDG_CONFIG_HOME")) {
146 char *home = getenv("HOME"); 146 char *home = getenv("HOME");
147 char *config_home = malloc(strlen("home") + strlen("/.config") + 1); 147 char *config_home = malloc(strlen(home) + strlen("/.config") + 1);
148 strcpy(config_home, home); 148 strcpy(config_home, home);
149 strcat(config_home, "/.config"); 149 strcat(config_home, "/.config");
150 setenv("XDG_CONFIG_HOME", config_home, 1); 150 setenv("XDG_CONFIG_HOME", config_home, 1);