X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Ftop.c;h=e517b4f906a95617e0fbd6936b8443b7a92ab04f;hb=060ab1cd7cdf750a0477f2a8b6193d28849877e8;hp=2824261c2a2a94e5de48d3ce67ef8a623d9b93ac;hpb=f134bd0c9c2213fbbb3967f3d784759cb65e2c76;p=tinc diff --git a/src/top.c b/src/top.c index 2824261c..e517b4f9 100644 --- a/src/top.c +++ b/src/top.c @@ -21,6 +21,7 @@ #ifdef HAVE_CURSES +#undef KEY_EVENT /* There are conflicting declarations for KEY_EVENT in Windows wincon.h and curses.h. */ #include #include "control_common.h" @@ -89,7 +90,7 @@ static bool update(int fd) { ns->known = false; while(recvline(fd, line, sizeof line)) { - int n = sscanf(line, "%d %d %s %"PRIu64" %"PRIu64" %"PRIu64" %"PRIu64, &code, &req, name, &in_packets, &in_bytes, &out_packets, &out_bytes); + int n = sscanf(line, "%d %d %4095s %"PRIu64" %"PRIu64" %"PRIu64" %"PRIu64, &code, &req, name, &in_packets, &in_bytes, &out_packets, &out_bytes); if(n == 2) return true;