diff options
author | sam <sam@FreeBSD.org> | 2005-08-06 18:47:12 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-08-06 18:47:12 +0000 |
commit | 653cdbcef0811ef8d6084e294c9cb1347f2cf4be (patch) | |
tree | 23c4f3f9e12bd5e3a3a47a642adf56e27f611562 | |
parent | 2269fa4b409dfeedf3a2a0b25340cd1da39ecde9 (diff) | |
download | FreeBSD-src-653cdbcef0811ef8d6084e294c9cb1347f2cf4be.zip FreeBSD-src-653cdbcef0811ef8d6084e294c9cb1347f2cf4be.tar.gz |
sigh, sizeof the correct variable so we can match ifname's > 4 bytes
-rw-r--r-- | tools/tools/ath/80211debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/tools/ath/80211debug.c b/tools/tools/ath/80211debug.c index 0750e67..1c65eaa 100644 --- a/tools/tools/ath/80211debug.c +++ b/tools/tools/ath/80211debug.c @@ -170,7 +170,7 @@ main(int argc, char *argv[]) #else snprintf(oid, sizeof(oid), "net.wlan.%d.%%parent", unit); #endif - parentlen = sizeof(parentlen); + parentlen = sizeof(parent); if (sysctlbyname(oid, parent, &parentlen, NULL, 0) >= 0 && strncmp(parent, ifname, parentlen) == 0) break; |