]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 279951:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 9 Apr 2015 21:06:51 +0000 (21:06 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 9 Apr 2015 21:06:51 +0000 (21:06 +0000)
commit8276e3a1ad8f3ddb73e6785ed1cd10c9e89b7692
treea90da15c29c6205813714df43a55bf2ac626ad00
parent542612da4f642d4f30b1a52c2e470912af1aa29f
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(...).

git-svn-id: svn://svn.freebsd.org/base/stable/10@281326 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sbin/ifconfig/ifconfig.c