summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2006-02-08 19:24:55 +0000
committersam <sam@FreeBSD.org>2006-02-08 19:24:55 +0000
commitfa47370bfce1f074ab01e335dc480baf5d8dc7c1 (patch)
treed2ee70a97f59523ed8bd92c5d2338b60ad5e72e2 /sbin/ifconfig
parentdde9f675ff2ae100cb78e6b111eed8d00d41472d (diff)
downloadFreeBSD-src-fa47370bfce1f074ab01e335dc480baf5d8dc7c1.zip
FreeBSD-src-fa47370bfce1f074ab01e335dc480baf5d8dc7c1.tar.gz
really truncate long ssid's when !verbose
MFC after: 1 week
Diffstat (limited to 'sbin/ifconfig')
-rw-r--r--sbin/ifconfig/ifieee80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/ifconfig/ifieee80211.c b/sbin/ifconfig/ifieee80211.c
index d45a457..5b4e2d5 100644
--- a/sbin/ifconfig/ifieee80211.c
+++ b/sbin/ifconfig/ifieee80211.c
@@ -880,7 +880,7 @@ list_scan(int s)
vp = (u_int8_t *)(sr+1);
printf("%-*.*s %s %3d %3dM %2d:%-2d %3d %-4.4s"
, ssidmax
- , copy_essid(ssid, sizeof(ssid), vp, sr->isr_ssid_len)
+ , copy_essid(ssid, ssidmax, vp, sr->isr_ssid_len)
, ssid
, ether_ntoa((const struct ether_addr *) sr->isr_bssid)
, ieee80211_mhz2ieee(sr->isr_freq)
OpenPOWER on IntegriCloud