Re: [PATCH iproute2 3/5] bridge: avoid snprint truncation on time

2018-03-20 Thread David Ahern
On 3/19/18 10:56 AM, Stephen Hemminger wrote: > This fixes new gcc warning about possible string overflow. > > mdb.c: In function ‘__print_router_port_stats’: > mdb.c:61:11: warning: ‘%.2i’ directive output may be truncated writing > between 2 and 7 bytes into a region of size between 0 and 4 >

[PATCH iproute2 3/5] bridge: avoid snprint truncation on time

2018-03-19 Thread Stephen Hemminger
This fixes new gcc warning about possible string overflow. mdb.c: In function ‘__print_router_port_stats’: mdb.c:61:11: warning: ‘%.2i’ directive output may be truncated writing between 2 and 7 bytes into a region of size between 0 and 4 [-Wformat-truncation=] "%4i.%.2i", (int)tv.tv_sec,