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
..
2010-05-10 23:08:19 +02:00
2010-04-26 11:51:59 +02:00
2010-07-12 16:05:32 -04:00
2010-04-28 01:07:29 -06:00
2010-04-23 02:08:44 +02:00
2010-06-04 16:00:42 -04:00
2010-04-24 11:31:25 -07:00
2010-05-07 14:01:17 -07:00