On Wed, 2009-09-30 at 21:19 -0400, John W. Linville wrote: [...] > +void cfg80211_get_drvinfo(struct net_device *dev, struct ethtool_drvinfo *info) > +{ > + struct wireless_dev *wdev = dev->ieee80211_ptr; > + > + strncpy(info->driver, wiphy_dev(wdev->wiphy)->driver->name, > + sizeof(info->driver)); > + info->driver[sizeof(info->driver) - 1] = '\0'; [...] Use strlcpy() instead of these two statements. Ben. -- Ben Hutchings, Senior Software Engineer, Solarflare Communications Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked. -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html