diff options
author | Brian Somers <brian@FreeBSD.org> | 1997-12-23 22:38:55 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1997-12-23 22:38:55 +0000 |
commit | 6fefd4368435b171e66e631a54625eead7ab51d1 (patch) | |
tree | 8526d53e3ef8800e4608ca362123699206a0e9e7 /usr.sbin/ppp/arp.c | |
parent | db44d014b3a59aae8fc4bf902bbafba381aa1b73 (diff) | |
download | src-test2-6fefd4368435b171e66e631a54625eead7ab51d1.tar.gz src-test2-6fefd4368435b171e66e631a54625eead7ab51d1.zip |
Notes
Diffstat (limited to 'usr.sbin/ppp/arp.c')
-rw-r--r-- | usr.sbin/ppp/arp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/arp.c b/usr.sbin/ppp/arp.c index dc9c7f398119..d089e7c1b439 100644 --- a/usr.sbin/ppp/arp.c +++ b/usr.sbin/ppp/arp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: arp.c,v 1.17 1997/11/09 06:22:38 brian Exp $ + * $Id: arp.c,v 1.18 1997/11/22 03:37:22 brian Exp $ * */ @@ -244,7 +244,7 @@ get_ether_addr(int s, u_long ipaddr, struct sockaddr_dl *hwaddr) for (ifr = ifc.ifc_req; ifr < ifend;) { if (ifr->ifr_addr.sa_family == AF_INET) { ina = ((struct sockaddr_in *) & ifr->ifr_addr)->sin_addr.s_addr; - strncpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name)); + strncpy(ifreq.ifr_name, ifr->ifr_name, sizeof(ifreq.ifr_name) - 1); ifreq.ifr_name[sizeof(ifreq.ifr_name) - 1] = '\0'; /* |