linux/drivers/net/wireless/hostap
Dan Carpenter 8b967e41e0 hostap: fixup strlen() math
In hostap_add_interface() we do:
	sprintf(dev->name, "%s%s", prefix, name);

dev->name has IFNAMSIZ (16) characters.
prefix is local->dev->name.
name is "wds%d"

strlen() returns the number of characters in the string not counting the
NULL so if we have a string with 11 characters we get "12345678901wds%d"
which is 16 characters and a NULL so we're past the end of the array.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-07-12 16:05:32 -04:00
..
hostap_80211_rx.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-05-17 13:57:43 -04:00
hostap_80211_tx.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hostap_80211.h wireless: convert drivers to netdev_tx_t 2009-09-01 01:14:04 -07:00
hostap_ap.c wireless:hostap_ap.c Fix warning: variable 'fc' set but not used 2010-06-18 15:05:12 -04:00
hostap_ap.h
hostap_common.h
hostap_config.h
hostap_cs.c hostap: Protect against initialization interrupt 2010-06-15 15:44:41 -04:00
hostap_download.c drivers/net: remove useless semicolons 2010-05-17 22:47:34 -07:00
hostap_hw.c hostap: Protect against initialization interrupt 2010-06-15 15:44:41 -04:00
hostap_info.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hostap_ioctl.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2010-05-17 13:57:43 -04:00
hostap_main.c hostap: fixup strlen() math 2010-07-12 16:05:32 -04:00
hostap_pci.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hostap_plx.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
hostap_proc.c
hostap_wlan.h hostap: Protect against initialization interrupt 2010-06-15 15:44:41 -04:00
hostap.h
Kconfig wireless: remove WLAN_80211 and WLAN_PRE80211 from Kconfig 2009-10-30 16:50:35 -04:00
Makefile