]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - misc/nstat.c
ss: make local variables static
[mirror_iproute2.git] / misc / nstat.c
index ffa14b1e159608db86a718c90582b07521d92749..88f1c7698243235b12f58cd067afce488af1be4c 100644 (file)
@@ -177,12 +177,12 @@ static int count_spaces(const char *line)
 
 static void load_ugly_table(FILE *fp)
 {
-       char buf[4096];
+       char buf[2048];
        struct nstat_ent *db = NULL;
        struct nstat_ent *n;
 
        while (fgets(buf, sizeof(buf), fp) != NULL) {
-               char idbuf[sizeof(buf)];
+               char idbuf[4096];
                int  off;
                char *p;
                int count1, count2, skip = 0;