Message ID | 20100105194914.321801567@mini.kroah.org |
---|---|
State | Not Applicable, archived |
Delegated to: | David Miller |
Headers | show |
--- a/drivers/net/wireless/libertas/wext.c +++ b/drivers/net/wireless/libertas/wext.c @@ -1899,10 +1899,8 @@ static int lbs_get_essid(struct net_devi if (priv->connect_status == LBS_CONNECTED) { memcpy(extra, priv->curbssparams.ssid, priv->curbssparams.ssid_len); - extra[priv->curbssparams.ssid_len] = '\0'; } else { memset(extra, 0, 32); - extra[priv->curbssparams.ssid_len] = '\0'; } /* * If none, we may want to get the one that was set