diff options
author | Jacques Vidrine <nectar@FreeBSD.org> | 2003-05-01 19:03:14 +0000 |
---|---|---|
committer | Jacques Vidrine <nectar@FreeBSD.org> | 2003-05-01 19:03:14 +0000 |
commit | d05090827f0e5b95cc7d2bcdde8b3b4e0f986241 (patch) | |
tree | 736595316c161b3d1ae559f331feaa6ba12b500e /lib/libc/net/if_nametoindex.c | |
parent | 9501b60383bd4123b406e604b1fbe8108778c634 (diff) | |
download | src-d05090827f0e5b95cc7d2bcdde8b3b4e0f986241.tar.gz src-d05090827f0e5b95cc7d2bcdde8b3b4e0f986241.zip |
Back out the `hiding' of strlcpy and strlcat. Several people
vocally objected to this safety belt.
Notes
Notes:
svn path=/head/; revision=114443
Diffstat (limited to 'lib/libc/net/if_nametoindex.c')
-rw-r--r-- | lib/libc/net/if_nametoindex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/if_nametoindex.c b/lib/libc/net/if_nametoindex.c index 887d64f3763c..d0ca5212755d 100644 --- a/lib/libc/net/if_nametoindex.c +++ b/lib/libc/net/if_nametoindex.c @@ -70,7 +70,7 @@ if_nametoindex(const char *ifname) s = _socket(AF_INET, SOCK_DGRAM, 0); if (s != -1) { - _strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); + strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)); if (_ioctl(s, SIOCGIFINDEX, &ifr) != -1) { _close(s); return (ifr.ifr_index); |