diff options
author | truckman <truckman@FreeBSD.org> | 2016-05-20 07:08:19 +0000 |
---|---|---|
committer | truckman <truckman@FreeBSD.org> | 2016-05-20 07:08:19 +0000 |
commit | b3a60fa2fe6bf2c62be23db5f3b0e53d5b8d20fb (patch) | |
tree | 74885025f0517971bbbd06487834d9e013a21c0e /contrib/libc++/src/valarray.cpp | |
parent | 4597c47c8b031e66fdecf9be5ab02e94150345e6 (diff) | |
download | FreeBSD-src-b3a60fa2fe6bf2c62be23db5f3b0e53d5b8d20fb.zip FreeBSD-src-b3a60fa2fe6bf2c62be23db5f3b0e53d5b8d20fb.tar.gz |
MFC r299868
Use strlcpy() instead of strncpy() when copying ifname to ensure
that it is NUL terminated. Additional NUL padding is not required
for short names.
Reported by: Coverity
CID: 991863, 991864, 991865
Diffstat (limited to 'contrib/libc++/src/valarray.cpp')
0 files changed, 0 insertions, 0 deletions