X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Ftop.c;h=e517b4f906a95617e0fbd6936b8443b7a92ab04f;hp=40b80479a95bce18367d0e5dc3cc771224268351;hb=060ab1cd7cdf750a0477f2a8b6193d28849877e8;hpb=be8e5cbd1cfcd198f975542e52085abdd543ec80 diff --git a/src/top.c b/src/top.c index 40b80479..e517b4f9 100644 --- a/src/top.c +++ b/src/top.c @@ -90,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;