summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/arp.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-12-23 22:38:55 +0000
committerBrian Somers <brian@FreeBSD.org>1997-12-23 22:38:55 +0000
commit6fefd4368435b171e66e631a54625eead7ab51d1 (patch)
tree8526d53e3ef8800e4608ca362123699206a0e9e7 /usr.sbin/ppp/arp.c
parentdb44d014b3a59aae8fc4bf902bbafba381aa1b73 (diff)
downloadsrc-test2-6fefd4368435b171e66e631a54625eead7ab51d1.tar.gz
src-test2-6fefd4368435b171e66e631a54625eead7ab51d1.zip
Notes
Diffstat (limited to 'usr.sbin/ppp/arp.c')
-rw-r--r--usr.sbin/ppp/arp.c4
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';
/*