X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincd.c;h=3e3b7b0dfd9586b435912958d2c275c2f9a70fca;hb=551cd19406a560d0d206bff5b4e9da064ec222b6;hp=cb86cd8b522d5dbaf4a18c6da2f95c0d17b8eeb2;hpb=6c453769fd16125ec18e8e6d102a3eaa09d370c7;p=tinc diff --git a/src/tincd.c b/src/tincd.c index cb86cd8b..3e3b7b0d 100644 --- a/src/tincd.c +++ b/src/tincd.c @@ -186,7 +186,7 @@ static void make_names(void) #ifdef HAVE_MINGW HKEY key; char installdir[1024] = ""; - long len = sizeof(installdir); + long len = sizeof installdir; #endif if(netname) @@ -213,7 +213,7 @@ static void make_names(void) #endif if(!controlsocketname) - asprintf(&controlsocketname, LOCALSTATEDIR "/run/%s.control", identname); + asprintf(&controlsocketname, "%s/run/%s.control/socket", LOCALSTATEDIR, identname); if(!logfilename) asprintf(&logfilename, LOCALSTATEDIR "/log/%s.log", identname);