Re: [PATCH 4/5] misc: fix compiler warning in ifstat and nstat

2020-11-30 Thread Stephen Hemminger
On Mon, 30 Nov 2020 09:18:59 + David Laight wrote: > From: Stephen Hemminger > > Sent: 30 November 2020 00:22 > > > > The code here was doing strncpy() in a way that causes gcc 10 > > warning about possible string overflow. Just use strlcpy() which > > will null terminate and bound the strin

RE: [PATCH 4/5] misc: fix compiler warning in ifstat and nstat

2020-11-30 Thread David Laight
From: Stephen Hemminger > Sent: 30 November 2020 00:22 > > The code here was doing strncpy() in a way that causes gcc 10 > warning about possible string overflow. Just use strlcpy() which > will null terminate and bound the string as expected. > > This has existed since start of git era so no Fix