Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Feb 2007 00:32:36 GMT
From:      Sam Leffler <sam@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 114946 for review
Message-ID:  <200702240032.l1O0Wa9h045181@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=114946

Change 114946 by sam@sam_ebb on 2007/02/24 00:31:52

	explicitly define array size

Affected files ...

.. //depot/projects/wifi/sys/net80211/ieee80211_ioctl.c#67 edit

Differences ...

==== //depot/projects/wifi/sys/net80211/ieee80211_ioctl.c#67 (text+ko) ====

@@ -1625,7 +1625,7 @@
 static struct ieee80211_channel *
 findchannel(struct ieee80211com *ic, int ieee, int mode)
 {
-	static const u_int chanflags[] = {
+	static const u_int chanflags[IEEE80211_MODE_MAX] = {
 		0,			/* IEEE80211_MODE_AUTO */
 		IEEE80211_CHAN_A,	/* IEEE80211_MODE_11A */
 		IEEE80211_CHAN_B,	/* IEEE80211_MODE_11B */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200702240032.l1O0Wa9h045181>