OpenWrt – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 --- a/driver/wl_linux.c
2 +++ b/driver/wl_linux.c
3 @@ -1425,7 +1425,7 @@ wl_alloc_if(wl_info_t *wl, int iftype, u
4 dev = alloc_etherdev(sizeof(wl_if_t));
5 wlif = netdev_priv(dev);
6 bzero(wlif, sizeof(wl_if_t));
7 - strncpy(dev->name, name, IFNAMSIZ);
8 + snprintf(dev->name, IFNAMSIZ, name, subunit);
9  
10 wlif->type = iftype;
11 wlif->dev = dev;