aboutsummaryrefslogtreecommitdiffstats
path: root/src/gammad.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-11 12:03:35 +0200
committerMattias Andrée <maandree@kth.se>2016-07-11 12:03:35 +0200
commite093bea5dbf560e1c3461de5ac74c1e886d67a71 (patch)
tree02942cb486cb1cc45e03a691798dc99e203faed4 /src/gammad.c
parentAdd .socket suffix to the socket (diff)
downloadcoopgammad-e093bea5dbf560e1c3461de5ac74c1e886d67a71.tar.gz
coopgammad-e093bea5dbf560e1c3461de5ac74c1e886d67a71.tar.bz2
coopgammad-e093bea5dbf560e1c3461de5ac74c1e886d67a71.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/gammad.c')
-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;