summaryrefslogtreecommitdiffstats
path: root/lib/libc/net/if_nametoindex.c
diff options
context:
space:
mode:
authornectar <nectar@FreeBSD.org>2003-05-01 19:03:14 +0000
committernectar <nectar@FreeBSD.org>2003-05-01 19:03:14 +0000
commit0b64e1476ba01c6ba095af7d0623e93362281a12 (patch)
tree736595316c161b3d1ae559f331feaa6ba12b500e /lib/libc/net/if_nametoindex.c
parent5ce8f7673e9083fdec888025823478cd3faf1ed7 (diff)
downloadFreeBSD-src-0b64e1476ba01c6ba095af7d0623e93362281a12.zip
FreeBSD-src-0b64e1476ba01c6ba095af7d0623e93362281a12.tar.gz
Back out the `hiding' of strlcpy and strlcat. Several people
vocally objected to this safety belt.
Diffstat (limited to 'lib/libc/net/if_nametoindex.c')
-rw-r--r--lib/libc/net/if_nametoindex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/if_nametoindex.c b/lib/libc/net/if_nametoindex.c
index 887d64f..d0ca521 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);
OpenPOWER on IntegriCloud