mirror of
https://git.proxmox.com/git/mirror_iproute2
synced 2025-08-25 14:29:20 +00:00
misc: avoid snprintf warnings in ss and nstat
Gcc 8 checks that target buffer is big enough. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
d5732e3470
commit
da8034a019
@ -178,12 +178,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;
|
||||
|
Loading…
Reference in New Issue
Block a user