aboutsummaryrefslogtreecommitdiffstats
path: root/src/gammad.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/gammad.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gammad.c b/src/gammad.c
index 17cd900..7ec7fcf 100644
--- a/src/gammad.c
+++ b/src/gammad.c
@@ -94,7 +94,7 @@ static char* get_socket_pathname(libgamma_site_state_t* site)
if ((pw = getpwuid(getuid())))
username = pw->pw_name ? pw->pw_name : "";
- n = sizeof("%s/.gammad/~%s/%i%s%s.socket") + 3 * sizeof(int);
+ n = sizeof("/.gammad/~/..socket") + 3 * sizeof(int);
n += strlen(rundir) + strlen(username) + strlen(name);
if (!(rc = malloc(n)))
goto fail;