summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uxc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/uxc.c b/uxc.c
index 230e19b..332b91d 100644
--- a/uxc.c
+++ b/uxc.c
@@ -1034,7 +1034,7 @@ static int uxc_set(char *name, char *path, signed char autostart, char *pidfile,
t2 = strrchr(t1, '/');
*t2 = '\0';
- if (asprintf(&t2, "%s/settings", t1, name) == -1)
+ if (asprintf(&t2, "%s/settings", t1) == -1)
return -ENOMEM;
ret = mkdir(t2, 0755);