From 772670ea02eeda0941dd8d5fbcdb7b71b8eb4341 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Wed, 21 Jan 2004 22:00:50 +0000 Subject: [PATCH] Use the length of the interface name, not the length of its address when printing the name. Approved by: brian --- usr.sbin/ppp/arp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/ppp/arp.c b/usr.sbin/ppp/arp.c index 47b7869116b..2c5135266f8 100644 --- a/usr.sbin/ppp/arp.c +++ b/usr.sbin/ppp/arp.c @@ -302,7 +302,7 @@ arp_EtherAddr(int s, struct in_addr ipaddr, struct sockaddr_dl *hwaddr, if ((ifa->sin_addr.s_addr & netmask->sin_addr.s_addr) == (ipaddr.s_addr & netmask->sin_addr.s_addr)) { log_Printf(verbose ? LogPHASE : LogDEBUG, - "Found interface %.*s for %s\n", dl->sdl_alen, + "Found interface %.*s for %s\n", dl->sdl_nlen, dl->sdl_data, inet_ntoa(ipaddr)); memcpy(hwaddr, dl, dl->sdl_len); free(buf);