treewide: correctly apply IFNAMSIZ limit
[project/netifd.git] / device.h
index 37f8c37c58a35f948c2476ac9c89389838246136..6751628b9b330269f0af06a3678353e8192c3529 100644 (file)
--- a/device.h
+++ b/device.h
@@ -219,7 +219,7 @@ struct device {
        struct vlist_tree vlans;
        struct kvlist vlan_aliases;
 
-       char ifname[IFNAMSIZ + 1];
+       char ifname[IFNAMSIZ];
        int ifindex;
 
        struct blob_attr *config;