diff options
author | jhb <jhb@FreeBSD.org> | 2015-04-09 21:06:51 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2015-04-09 21:06:51 +0000 |
commit | 0fbe5b3df813c02a8ba34d7696447fa1b2ed0b89 (patch) | |
tree | a90da15c29c6205813714df43a55bf2ac626ad00 /lib/libthr/thread/thr_once.c | |
parent | a251dcdd5c550663dea0a2db7ec7ce2336256e0c (diff) | |
download | FreeBSD-src-0fbe5b3df813c02a8ba34d7696447fa1b2ed0b89.zip FreeBSD-src-0fbe5b3df813c02a8ba34d7696447fa1b2ed0b89.tar.gz |
MFC 279951:
Simplify string mangling in ifmaybeload().
- Use strlcpy() instead of strcpy().
- Use strlcat() instead of a strlcpy() with a magic number subtracted
from the length.
- Replace strncmp(..., strlen(foo) + 1) with strcmp(...).
Diffstat (limited to 'lib/libthr/thread/thr_once.c')
0 files changed, 0 insertions, 0 deletions