X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftincctl.c;h=344aa97dcb74464d28b8157c43c0e0ef292a224c;hb=b355476e917f377abb6434657933fcf4ffe6870a;hp=2de89e81200728ecc0bc5008c760ad9b0268ac2d;hpb=edc08b73a9e353bde6db4c73866a6a730a1a7cb4;p=tinc diff --git a/src/tincctl.c b/src/tincctl.c index 2de89e81..344aa97d 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -57,7 +57,7 @@ static char *name = NULL; static char *identname = NULL; /* program name for syslog */ static char *pidfilename = NULL; /* pid file location */ static char *confdir = NULL; -static char controlcookie[1024]; +static char controlcookie[1025]; char *netname = NULL; char *confbase = NULL; static char *tinc_conf = NULL; @@ -708,8 +708,8 @@ static bool connect_tincd(bool verbose) { return false; } - char host[128]; - char port[128]; + char host[129]; + char port[129]; if(fscanf(f, "%20d %1024s %128s port %128s", &pid, controlcookie, host, port) != 4) { if(verbose)