aboutsummaryrefslogtreecommitdiffstats
path: root/src/lpass.c
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2025-02-10 21:34:08 +0300
committerJoursoir <chat@joursoir.net>2025-02-10 21:34:28 +0300
commite9a715195fbf82c9ea7d4b2d6699351468fab222 (patch)
tree101b362b2a0da53bc855382d837b2528b02c8b19 /src/lpass.c
parent520b9fa310b3e649420a0b6aa040e42af4928dee (diff)
downloadlock-password-e9a715195fbf82c9ea7d4b2d6699351468fab222.tar.gz
lock-password-e9a715195fbf82c9ea7d4b2d6699351468fab222.tar.bz2
lock-password-e9a715195fbf82c9ea7d4b2d6699351468fab222.zip
make xstrcat() concats a variable number of strings
Diffstat (limited to 'src/lpass.c')
-rw-r--r--src/lpass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lpass.c b/src/lpass.c
index 9a58093..229f3b6 100644
--- a/src/lpass.c
+++ b/src/lpass.c
@@ -61,7 +61,7 @@ static struct cmd_struct *get_cmd(const char *name)
static int goto_maindir()
{
- char *rootdir = xstrcat(getenv("HOME"), LOCKPASS_DIR, "/");
+ char *rootdir = xstrcat(getenv("HOME"), "/", LOCKPASS_DIR, NULL);
int retval = chdir(rootdir);
if(retval)
{