diff options
author | Drew DeVault <ddevault@linode.com> | 2015-12-11 14:22:28 -0500 |
---|---|---|
committer | Drew DeVault <ddevault@linode.com> | 2015-12-11 14:22:28 -0500 |
commit | bffbe11e530fa37f2421e94463bc2ec4516ba394 (patch) | |
tree | 0fcfdb9783d3054bed1ee38530eca625f76516a4 /sway/config.c | |
parent | a7710c5537cb005acaeb2afe9a53bafa3e022817 (diff) |
Fix config.c strlen error
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/config.c b/sway/config.c index 6a1d172b..7e3c3149 100644 --- a/sway/config.c +++ b/sway/config.c @@ -142,7 +142,7 @@ static char *get_config_path(void) { if (!getenv("XDG_CONFIG_HOME")) { char *home = getenv("HOME"); - char *config_home = malloc(strlen("home") + strlen("/.config") + 1); + char *config_home = malloc(strlen(home) + strlen("/.config") + 1); strcpy(config_home, home); strcat(config_home, "/.config"); setenv("XDG_CONFIG_HOME", config_home, 1); |