summaryrefslogtreecommitdiffstats
path: root/contrib/libc++/src/exception.cpp
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-09-11 06:52:57 +0000
committerdelphij <delphij@FreeBSD.org>2015-09-11 06:52:57 +0000
commit85e8cd93390eb0f4ee5d7d6ac6b9c1e55f7cee83 (patch)
treeabbb73b2bb4dcc8cd757e5bcfa968d74ef5258b0 /contrib/libc++/src/exception.cpp
parent65d9a559eb7b19c7541531c4e8891e6d45b00ff2 (diff)
downloadFreeBSD-src-85e8cd93390eb0f4ee5d7d6ac6b9c1e55f7cee83.zip
FreeBSD-src-85e8cd93390eb0f4ee5d7d6ac6b9c1e55f7cee83.tar.gz
Use strlcpy() in favor of strncpy() as it's defined to have a nul character
at the end of string buffer, and the code context do expects this to behave correctly (e.g. strchr). Note that we do not believe there is real-world impact for gstat(8)'s usage because the strings are length checked, and the on-stack buffer belongs to main() and we can expect to have zeros in them. MFC after: 2 weeks
Diffstat (limited to 'contrib/libc++/src/exception.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud