Re: [dpdk-dev] [PATCH v3] net/tap: fix coverity warning on strncpy

2017-02-17 Thread Wiles, Keith
> On Feb 17, 2017, at 9:37 AM, Keith Wiles wrote: > > Calling strncpy with a maximum size argument of 16 bytes on destination > array "ifr.ifr_ifrn.ifrn_name" of size 16 bytes might leave the > destination string unterminated. > > Signed-off-by: Keith Wiles > --- > v3 - convert strncpy to use

[dpdk-dev] [PATCH v3] net/tap: fix coverity warning on strncpy

2017-02-17 Thread Keith Wiles
Calling strncpy with a maximum size argument of 16 bytes on destination array "ifr.ifr_ifrn.ifrn_name" of size 16 bytes might leave the destination string unterminated. Signed-off-by: Keith Wiles --- v3 - convert strncpy to use snprintf instead. v2 - fix the checkpatch warning no spaces around '-