From e093bea5dbf560e1c3461de5ac74c1e886d67a71 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Mon, 11 Jul 2016 12:03:35 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gammad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2