summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2015-07-28 10:16:16 -0500
committerDenis Kenzior <denkenz@gmail.com>2015-07-28 10:16:16 -0500
commitca105f704051604053b4c5f6895284733cb10a0b (patch)
treed6d1bbc5fc725988eb33ee654e7b3af5ecbde491 /src
parentdbb3ec13e550e20eb96c3958058ad89b3100a169 (diff)
downloadofono-ca105f704051604053b4c5f6895284733cb10a0b.tar.bz2
ppp_net: Make static analysis tools happy
The kernel simply puts a null terminator at index 15 prior to ifr_name processing. So we do the same. Original report by: Sabas Rosales, Blanca E <blanca.e.sabas.rosales@intel.com> Buffer not null terminated (BUFFER_SIZE_WARNING) buffer_size_warning: 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. 67 strncpy(ifr.ifr_name, net->if_name, sizeof(ifr.ifr_name));
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions